; LLVM IR from kala13x/libxutils :: src/net (mdtp)

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

%struct.xjson_ = type { %struct.xjson_token_, i32, ptr, ptr, ptr, i64, i64 }
%struct.xjson_token_ = type { i32, ptr, i64 }
%struct.XPacket = type { %struct.XPacketHeader, %struct.XByteBuffer, ptr, ptr, i32, i32, i8, ptr, ptr }
%struct.XPacketHeader = type { i32, i32, i32, i32, i32, i32, i8, [128 x i8], [8 x i8], [64 x i8], [8 x i8] }
%struct.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }

@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1

declare void @XJSON_FreeObject(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @XPacket_ParseHeader(ptr noundef, ptr noundef) #2

declare i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @XByteBuffer_Init(ptr noundef, i64 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @XPacket_Parse(ptr noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.xjson_, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.XPacket, ptr %13, i32 0, i32 0
  store ptr %14, ptr %8, align 8, !tbaa !5
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 4 %15, i8 0, i64 236, i1 false)
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.XPacketHeader, ptr %16, i32 0, i32 0
  store i32 1, ptr %17, align 4, !tbaa !11
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %23, label %20

20:                                               ; preds = %3
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = icmp ule i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20, %3
  store i32 4, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.XPacket, ptr %25, i32 0, i32 1
  %27 = call i32 @XByteBuffer_Init(ptr noundef %26, i64 noundef 0, i32 noundef 0)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !14
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.XPacket, ptr %30, i32 0, i32 4
  store i32 %29, ptr %31, align 8, !tbaa !15
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.XPacket, ptr %32, i32 0, i32 2
  store ptr null, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.XPacket, ptr %34, i32 0, i32 7
  store ptr null, ptr %35, align 8, !tbaa !20
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.XPacket, ptr %36, i32 0, i32 8
  store ptr null, ptr %37, align 8, !tbaa !21
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.XPacket, ptr %38, i32 0, i32 3
  store ptr null, ptr %39, align 8, !tbaa !22
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.XPacket, ptr %40, i32 0, i32 5
  store i32 0, ptr %41, align 4, !tbaa !23
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.XPacket, ptr %42, i32 0, i32 6
  store i8 0, ptr %43, align 8, !tbaa !24
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = sub i64 %44, 4
  %46 = trunc i64 %45 to i32
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.XPacket, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 8, !tbaa !15
  %50 = icmp ult i32 %46, %49
  br i1 %50, label %51, label %54

51:                                               ; preds = %24
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.XPacketHeader, ptr %52, i32 0, i32 0
  store i32 2, ptr %53, align 4, !tbaa !11
  store i32 2, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

54:                                               ; preds = %24
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.XPacketHeader, ptr %55, i32 0, i32 8
  %57 = getelementptr inbounds [8 x i8], ptr %56, i64 0, i64 0
  %58 = call i64 @xstrncpy(ptr noundef %57, i64 noundef 8, ptr noundef @.str.33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 4
  store ptr %60, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.XPacket, ptr %61, i32 0, i32 4
  %63 = load i32, ptr %62, align 8, !tbaa !15
  %64 = icmp ugt i32 %63, 0
  br i1 %64, label %65, label %136

65:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #4
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.XPacket, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 8, !tbaa !15
  %70 = zext i32 %69 to i64
  %71 = call i32 @XJSON_Parse(ptr noundef %11, ptr noundef null, ptr noundef %66, i64 noundef %70)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %74, label %73

73:                                               ; preds = %65
  call void @XJSON_Destroy(ptr noundef %11)
  store i32 4, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %133

74:                                               ; preds = %65
  %75 = getelementptr inbounds %struct.xjson_, ptr %11, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XPacket, ptr %77, i32 0, i32 2
  store ptr %76, ptr %78, align 8, !tbaa !19
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.XPacket, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  call void @XPacket_ParseHeader(ptr noundef %79, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.XPacket, ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !15
  %86 = add i32 4, %85
  %87 = zext i32 %86 to i64
  store i64 %87, ptr %12, align 8, !tbaa !9
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = trunc i64 %88 to i32
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.XPacketHeader, ptr %90, i32 0, i32 4
  %92 = load i32, ptr %91, align 4, !tbaa !28
  %93 = add i32 %89, %92
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.XPacket, ptr %94, i32 0, i32 5
  store i32 %93, ptr %95, align 4, !tbaa !23
  %96 = load i64, ptr %7, align 8, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.XPacket, ptr %97, i32 0, i32 5
  %99 = load i32, ptr %98, align 4, !tbaa !23
  %100 = zext i32 %99 to i64
  %101 = icmp ult i64 %96, %100
  br i1 %101, label %102, label %110

102:                                              ; preds = %74
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XPacketHeader, ptr %103, i32 0, i32 0
  store i32 2, ptr %104, align 4, !tbaa !11
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.XPacket, ptr %105, i32 0, i32 2
  %107 = load ptr, ptr %106, align 8, !tbaa !19
  call void @XJSON_FreeObject(ptr noundef %107)
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.XPacket, ptr %108, i32 0, i32 2
  store ptr null, ptr %109, align 8, !tbaa !19
  store i32 2, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %132

110:                                              ; preds = %74
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.XPacketHeader, ptr %111, i32 0, i32 4
  %113 = load i32, ptr %112, align 4, !tbaa !28
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %121

115:                                              ; preds = %110
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %116, i64 %117
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.XPacket, ptr %119, i32 0, i32 7
  store ptr %118, ptr %120, align 8, !tbaa !20
  br label %121

121:                                              ; preds = %115, %110
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.XPacket, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !22
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %131

126:                                              ; preds = %121
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.XPacket, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  call void %129(ptr noundef %130, i8 noundef zeroext 0)
  br label %131

131:                                              ; preds = %126, %121
  store i32 0, ptr %9, align 4
  br label %132

132:                                              ; preds = %131, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %133

133:                                              ; preds = %132, %73
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #4
  %134 = load i32, ptr %9, align 4
  switch i32 %134, label %137 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135, %54
  store i32 6, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %137

137:                                              ; preds = %136, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %138

138:                                              ; preds = %137, %51, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %139 = load i32, ptr %4, align 4
  ret i32 %139
}

declare i32 @XJSON_Parse(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #0

declare void @XJSON_Destroy(ptr noundef) #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"XPacketHeader", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 25, !7, i64 153, !7, i64 161, !7, i64 225}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 288}
!16 = !{!"XPacket", !12, i64 0, !17, i64 240, !6, i64 272, !6, i64 280, !13, i64 288, !13, i64 292, !7, i64 296, !6, i64 304, !6, i64 312}
!17 = !{!"XByteBuffer", !6, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !18, i64 26, !13, i64 28}
!18 = !{!"short", !7, i64 0}
!19 = !{!16, !6, i64 272}
!20 = !{!16, !6, i64 304}
!21 = !{!16, !6, i64 312}
!22 = !{!16, !6, i64 280}
!23 = !{!16, !13, i64 292}
!24 = !{!16, !7, i64 296}
!25 = !{!26, !6, i64 32}
!26 = !{!"xjson_", !27, i64 0, !13, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 64}
!27 = !{!"xjson_token_", !13, i64 0, !6, i64 8, !10, i64 16}
!28 = !{!12, !13, i64 16}


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

%struct.xjson_ = type { %struct.xjson_token_, i32, ptr, ptr, ptr, i64, i64 }
%struct.xjson_token_ = type { i32, ptr, i64 }

@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1

declare void @XJSON_FreeObject(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @XPacket_ParseHeader(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @XByteBuffer_Init(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 2, 7) i32 @XPacket_Parse(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #2 {
  %4 = alloca %struct.xjson_, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(236) %5, i8 0, i64 232, i1 false)
  store i32 1, ptr %0, align 4, !tbaa !5
  %6 = icmp eq ptr %1, null
  %7 = icmp eq i64 %2, 0
  %or.cond = or i1 %6, %7
  br i1 %or.cond, label %50, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 240
  %10 = tail call i32 @XByteBuffer_Init(ptr noundef nonnull %9, i64 noundef 0, i32 noundef 0) #4
  %11 = load i32, ptr %1, align 4, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 %11, ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %0, i64 272
  %14 = getelementptr inbounds i8, ptr %0, i64 304
  %15 = getelementptr inbounds i8, ptr %0, i64 280
  %16 = getelementptr inbounds i8, ptr %0, i64 292
  store i32 0, ptr %16, align 4, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 296
  store i8 0, ptr %17, align 8, !tbaa !18
  %18 = trunc i64 %2 to i32
  %19 = add i32 %18, -4
  %20 = icmp ult i32 %19, %11
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  br i1 %20, label %21, label %22

21:                                               ; preds = %8
  store i32 2, ptr %0, align 4, !tbaa !5
  br label %50

22:                                               ; preds = %8
  %23 = getelementptr inbounds i8, ptr %0, i64 153
  %24 = tail call i64 @xstrncpy(ptr noundef nonnull %23, i64 noundef 8, ptr noundef nonnull @.str.33) #4
  %25 = load i32, ptr %12, align 8, !tbaa !11
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %50, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #4
  %28 = zext i32 %25 to i64
  %29 = call i32 @XJSON_Parse(ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull %27, i64 noundef %28) #4
  %.not47 = icmp eq i32 %29, 0
  br i1 %.not47, label %30, label %31

30:                                               ; preds = %26
  call void @XJSON_Destroy(ptr noundef nonnull %4) #4
  br label %49

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %4, i64 32
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  store ptr %33, ptr %13, align 8, !tbaa !22
  call void @XPacket_ParseHeader(ptr noundef nonnull %0, ptr noundef %33)
  %34 = load i32, ptr %12, align 8, !tbaa !11
  %35 = add i32 %34, 4
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load i32, ptr %37, align 4, !tbaa !23
  %39 = add i32 %35, %38
  store i32 %39, ptr %16, align 4, !tbaa !17
  %40 = zext i32 %39 to i64
  %.not52 = icmp ugt i64 %40, %2
  br i1 %.not52, label %41, label %43

41:                                               ; preds = %31
  store i32 2, ptr %0, align 4, !tbaa !5
  %42 = load ptr, ptr %13, align 8, !tbaa !22
  call void @XJSON_FreeObject(ptr noundef %42) #4
  store ptr null, ptr %13, align 8, !tbaa !22
  br label %49

43:                                               ; preds = %31
  %.not48 = icmp eq i32 %38, 0
  br i1 %.not48, label %46, label %44

44:                                               ; preds = %43
  %45 = getelementptr inbounds i8, ptr %1, i64 %36
  store ptr %45, ptr %14, align 8, !tbaa !24
  br label %46

46:                                               ; preds = %44, %43
  %47 = load ptr, ptr %15, align 8, !tbaa !25
  %.not49 = icmp eq ptr %47, null
  br i1 %.not49, label %.thread, label %48

48:                                               ; preds = %46
  call void %47(ptr noundef nonnull %0, i8 noundef zeroext 0) #4
  br label %.thread

.thread:                                          ; preds = %46, %48
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #4
  br label %50

49:                                               ; preds = %41, %30
  %.1 = phi i32 [ 4, %30 ], [ 2, %41 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #4
  br label %50

50:                                               ; preds = %22, %.thread, %49, %3, %21
  %.3 = phi i32 [ 2, %21 ], [ 4, %3 ], [ %.1, %49 ], [ 6, %.thread ], [ 6, %22 ]
  ret i32 %.3
}

declare i32 @XJSON_Parse(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @XJSON_Destroy(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"XPacketHeader", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 153, !8, i64 161, !8, i64 225}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 288}
!12 = !{!"XPacket", !6, i64 0, !13, i64 240, !14, i64 272, !14, i64 280, !7, i64 288, !7, i64 292, !8, i64 296, !14, i64 304, !14, i64 312}
!13 = !{!"XByteBuffer", !14, i64 0, !15, i64 8, !15, i64 16, !16, i64 24, !16, i64 26, !7, i64 28}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = !{!12, !7, i64 292}
!18 = !{!12, !8, i64 296}
!19 = !{!20, !14, i64 32}
!20 = !{!"xjson_", !21, i64 0, !7, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !15, i64 64}
!21 = !{!"xjson_token_", !7, i64 0, !14, i64 8, !15, i64 16}
!22 = !{!12, !14, i64 272}
!23 = !{!6, !7, i64 16}
!24 = !{!12, !14, i64 304}
!25 = !{!12, !14, i64 280}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass