; LLVM IR from kala13x/libxutils :: examples (events)

; 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.XEventData = type { ptr, i32, i8, i32, i32, i32 }
%struct.xhttp_ = type { ptr, i16, ptr, i32, %struct.XByteBuffer, i32, %struct.XMap, i16, i16, i64, i64, i64, i64, i64, i8, i8, i8, [256 x i8], [128 x i8], [2048 x i8] }
%struct.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }
%struct.XMap = type { ptr, ptr, ptr, i64, i64, i32 }

@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @handle_request(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [256 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.XEventData, ptr %9, i32 0, i32 0
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %11, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.XEventData, ptr %12, i32 0, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !12
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.xhttp_, ptr %15, i32 0, i32 4
  %17 = getelementptr inbounds %struct.XByteBuffer, ptr %16, i32 0, i32 2
  %18 = load i64, ptr %17, align 8, !tbaa !13
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 2, i8 noundef zeroext 1, ptr noundef @.str.1, i32 noundef %14, i64 noundef %18)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.xhttp_, ptr %19, i32 0, i32 4
  %21 = getelementptr inbounds %struct.XByteBuffer, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.xhttp_, ptr %23, i32 0, i32 10
  %25 = load i64, ptr %24, align 8, !tbaa !20
  %26 = sub i64 %25, 1
  %27 = getelementptr inbounds i8, ptr %22, i64 %26
  store i8 0, ptr %27, align 1, !tbaa !21
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.xhttp_, ptr %28, i32 0, i32 4
  %30 = getelementptr inbounds %struct.XByteBuffer, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef @.str.2, ptr noundef %31)
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @XHTTP_Reset(ptr noundef %32, i8 noundef zeroext 0)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.xhttp_, ptr %33, i32 0, i32 5
  store i32 2, ptr %34, align 8, !tbaa !22
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.xhttp_, ptr %35, i32 0, i32 8
  store i16 200, ptr %36, align 2, !tbaa !23
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call ptr @XUtils_VersionShort()
  %39 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %37, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef %38)
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %45, label %41

41:                                               ; preds = %1
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %42, ptr noundef @.str.5, ptr noundef @.str.6)
  %44 = icmp slt i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %41, %1
  %46 = call ptr @XSTR_Error()
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.7, ptr noundef %46)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.XEventData, ptr %47, i32 0, i32 0
  store ptr null, ptr %48, align 8, !tbaa !9
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %106

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %50 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %51 = call i64 @xstrncpy(ptr noundef %50, i64 noundef 256, ptr noundef @.str.8)
  store i64 %51, ptr %7, align 8, !tbaa !24
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %54 = load i64, ptr %7, align 8, !tbaa !24
  %55 = call ptr @XHTTP_Assemble(ptr noundef %52, ptr noundef %53, i64 noundef %54)
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %49
  %58 = call ptr @XSTR_Error()
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.9, ptr noundef %58)
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.XEventData, ptr %59, i32 0, i32 0
  store ptr null, ptr %60, align 8, !tbaa !9
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %105

61:                                               ; preds = %49
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.XEventData, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 8, !tbaa !12
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.xhttp_, ptr %65, i32 0, i32 4
  %67 = getelementptr inbounds %struct.XByteBuffer, ptr %66, i32 0, i32 2
  %68 = load i64, ptr %67, align 8, !tbaa !13
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 2, i8 noundef zeroext 1, ptr noundef @.str.10, i32 noundef %64, i64 noundef %68)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.xhttp_, ptr %69, i32 0, i32 4
  %71 = getelementptr inbounds %struct.XByteBuffer, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.xhttp_, ptr %73, i32 0, i32 10
  %75 = load i64, ptr %74, align 8, !tbaa !20
  %76 = sub i64 %75, 1
  %77 = getelementptr inbounds i8, ptr %72, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !21
  store i8 %78, ptr %8, align 1, !tbaa !21
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.xhttp_, ptr %79, i32 0, i32 4
  %81 = getelementptr inbounds %struct.XByteBuffer, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.xhttp_, ptr %83, i32 0, i32 10
  %85 = load i64, ptr %84, align 8, !tbaa !20
  %86 = sub i64 %85, 1
  %87 = getelementptr inbounds i8, ptr %82, i64 %86
  store i8 0, ptr %87, align 1, !tbaa !21
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.xhttp_, ptr %88, i32 0, i32 4
  %90 = getelementptr inbounds %struct.XByteBuffer, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !19
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef @.str.11, ptr noundef %91)
  %92 = load i8, ptr %8, align 1, !tbaa !21
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.xhttp_, ptr %93, i32 0, i32 4
  %95 = getelementptr inbounds %struct.XByteBuffer, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !19
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.xhttp_, ptr %97, i32 0, i32 10
  %99 = load i64, ptr %98, align 8, !tbaa !20
  %100 = sub i64 %99, 1
  %101 = getelementptr inbounds i8, ptr %96, i64 %100
  store i8 %92, ptr %101, align 1, !tbaa !21
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XEventData, ptr %103, i32 0, i32 0
  store ptr %102, ptr %104, align 8, !tbaa !9
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %105

105:                                              ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #4
  br label %106

106:                                              ; preds = %105, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %107 = load i32, ptr %2, align 4
  ret i32 %107
}

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

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) #2

declare void @XHTTP_Reset(ptr noundef, i8 noundef zeroext) #2

declare i32 @XHTTP_AddHeader(ptr noundef, ptr noundef, ptr noundef, ...) #2

declare ptr @XUtils_VersionShort() #2

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

declare ptr @XHTTP_Assemble(ptr noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @XSTR_Error() #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #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, !6, i64 0}
!10 = !{!"XEventData", !6, i64 0, !11, i64 8, !7, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!14, !17, i64 48}
!14 = !{!"xhttp_", !6, i64 0, !15, i64 8, !6, i64 16, !11, i64 24, !16, i64 32, !11, i64 64, !18, i64 72, !15, i64 120, !15, i64 122, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !7, i64 168, !7, i64 169, !7, i64 170, !7, i64 171, !7, i64 427, !7, i64 555}
!15 = !{!"short", !7, i64 0}
!16 = !{!"XByteBuffer", !6, i64 0, !17, i64 8, !17, i64 16, !15, i64 24, !15, i64 26, !11, i64 28}
!17 = !{!"long", !7, i64 0}
!18 = !{!"XMap", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24, !17, i64 32, !11, i64 40}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !17, i64 136}
!21 = !{!7, !7, i64 0}
!22 = !{!14, !11, i64 64}
!23 = !{!14, !15, i64 122}
!24 = !{!17, !17, i64 0}


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

@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @handle_request(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = alloca [256 x i8], align 16
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !11
  %6 = getelementptr inbounds i8, ptr %3, i64 32
  %7 = getelementptr inbounds i8, ptr %3, i64 48
  %8 = load i64, ptr %7, align 8, !tbaa !12
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 2, i8 noundef zeroext 1, ptr noundef nonnull @.str.1, i32 noundef %5, i64 noundef %8) #4
  %9 = load ptr, ptr %6, align 8, !tbaa !18
  %10 = getelementptr inbounds i8, ptr %3, i64 136
  %11 = load i64, ptr %10, align 8, !tbaa !19
  %12 = getelementptr i8, ptr %9, i64 %11
  %13 = getelementptr i8, ptr %12, i64 -1
  store i8 0, ptr %13, align 1, !tbaa !20
  %14 = load ptr, ptr %6, align 8, !tbaa !18
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef nonnull @.str.2, ptr noundef %14) #4
  tail call void @XHTTP_Reset(ptr noundef %3, i8 noundef zeroext 0) #4
  %15 = getelementptr inbounds i8, ptr %3, i64 64
  store i32 2, ptr %15, align 8, !tbaa !21
  %16 = getelementptr inbounds i8, ptr %3, i64 122
  store i16 200, ptr %16, align 2, !tbaa !22
  %17 = tail call ptr @XUtils_VersionShort() #4
  %18 = tail call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %3, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, ptr noundef %17) #4
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %23, label %20

20:                                               ; preds = %1
  %21 = tail call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef nonnull %3, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6) #4
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %20, %1
  %24 = tail call ptr @XSTR_Error()
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.7, ptr noundef %24) #4
  store ptr null, ptr %0, align 8, !tbaa !5
  br label %45

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #4
  %26 = call i64 @xstrncpy(ptr noundef nonnull %2, i64 noundef 256, ptr noundef nonnull @.str.8) #4
  %27 = call ptr @XHTTP_Assemble(ptr noundef nonnull %3, ptr noundef nonnull %2, i64 noundef %26) #4
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %31

29:                                               ; preds = %25
  %30 = call ptr @XSTR_Error()
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.9, ptr noundef %30) #4
  br label %44

31:                                               ; preds = %25
  %32 = load i32, ptr %4, align 8, !tbaa !11
  %33 = load i64, ptr %7, align 8, !tbaa !12
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 2, i8 noundef zeroext 1, ptr noundef nonnull @.str.10, i32 noundef %32, i64 noundef %33) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !18
  %35 = load i64, ptr %10, align 8, !tbaa !19
  %36 = getelementptr i8, ptr %34, i64 %35
  %37 = getelementptr i8, ptr %36, i64 -1
  %38 = load i8, ptr %37, align 1, !tbaa !20
  store i8 0, ptr %37, align 1, !tbaa !20
  %39 = load ptr, ptr %6, align 8, !tbaa !18
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 4, i8 noundef zeroext 1, ptr noundef nonnull @.str.11, ptr noundef %39) #4
  %40 = load ptr, ptr %6, align 8, !tbaa !18
  %41 = load i64, ptr %10, align 8, !tbaa !19
  %42 = getelementptr i8, ptr %40, i64 %41
  %43 = getelementptr i8, ptr %42, i64 -1
  store i8 %38, ptr %43, align 1, !tbaa !20
  br label %44

44:                                               ; preds = %31, %29
  %storemerge = phi ptr [ %3, %31 ], [ null, %29 ]
  %.0 = phi i32 [ 0, %31 ], [ -1, %29 ]
  store ptr %storemerge, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #4
  br label %45

45:                                               ; preds = %44, %23
  %.1 = phi i32 [ -1, %23 ], [ %.0, %44 ]
  ret i32 %.1
}

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

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) local_unnamed_addr #2

declare void @XHTTP_Reset(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

declare i32 @XHTTP_AddHeader(ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

declare ptr @XUtils_VersionShort() local_unnamed_addr #2

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

declare ptr @XHTTP_Assemble(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @XSTR_Error() local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #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 = !{!"XEventData", !7, i64 0, !10, i64 8, !8, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!13, !16, i64 48}
!13 = !{!"xhttp_", !7, i64 0, !14, i64 8, !7, i64 16, !10, i64 24, !15, i64 32, !10, i64 64, !17, i64 72, !14, i64 120, !14, i64 122, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !8, i64 168, !8, i64 169, !8, i64 170, !8, i64 171, !8, i64 427, !8, i64 555}
!14 = !{!"short", !8, i64 0}
!15 = !{!"XByteBuffer", !7, i64 0, !16, i64 8, !16, i64 16, !14, i64 24, !14, i64 26, !10, i64 28}
!16 = !{!"long", !8, i64 0}
!17 = !{!"XMap", !7, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !16, i64 32, !10, i64 40}
!18 = !{!13, !7, i64 32}
!19 = !{!13, !16, i64 136}
!20 = !{!8, !8, i64 0}
!21 = !{!13, !10, i64 64}
!22 = !{!13, !14, i64 122}


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