; LLVM IR from AbdulrahmanXSO25/mkdb_cclient :: mkdb (mkdb_exec)

; 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.mkdb_t = type { ptr }
%struct.mkdb_result_t = type { i32, %union.anon }
%union.anon = type { %struct.anon.0 }
%struct.anon.0 = type { i16, ptr, i32, ptr }
%struct.anon = type { i32 }

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; 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 dso_local i64 @tcp_send(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @mkdb_exec(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [32768 x i8], align 16
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, 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
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %30

19:                                               ; preds = %3
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.mkdb_t, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %30

24:                                               ; preds = %19
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %24
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %31, label %30

30:                                               ; preds = %27, %24, %19, %3
  store i32 4, ptr %4, align 4
  br label %140

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32768, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %32 = getelementptr inbounds [32768 x i8], ptr %8, i64 0, i64 0
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call i64 @build_mkdb_command_msg(ptr noundef %32, i64 noundef 32768, ptr noundef %33)
  store i64 %34, ptr %9, align 8, !tbaa !11
  %35 = load i64, ptr %9, align 8, !tbaa !11
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  store i32 4, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %139

38:                                               ; preds = %31
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mkdb_t, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds [32768 x i8], ptr %8, i64 0, i64 0
  %43 = load i64, ptr %9, align 8, !tbaa !11
  %44 = call i64 @tcp_send(ptr noundef %41, ptr noundef %42, i64 noundef %43)
  %45 = load i64, ptr %9, align 8, !tbaa !11
  %46 = icmp ne i64 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %38
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %139

48:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mkdb_t, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = call ptr @receive_packet(ptr noundef %51, ptr noundef %11)
  store ptr %52, ptr %12, align 8, !tbaa !5
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %48
  store i32 3, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %138

56:                                               ; preds = %48
  %57 = call noalias ptr @malloc(i64 noundef 40) #7
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %57, ptr %58, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %64, label %62

62:                                               ; preds = %56
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %63) #6
  store i32 5, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %138

64:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 0
  %67 = load i8, ptr %66, align 1, !tbaa !13
  store i8 %67, ptr %13, align 1, !tbaa !13
  %68 = load i8, ptr %13, align 1, !tbaa !13
  %69 = sext i8 %68 to i32
  switch i32 %69, label %131 [
    i32 33, label %70
    i32 45, label %83
    i32 43, label %115
  ]

70:                                               ; preds = %64
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mkdb_result_t, ptr %72, i32 0, i32 0
  store i32 0, ptr %73, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 1 %75, i64 4, i1 false)
  %76 = load i32, ptr %14, align 4, !tbaa !17
  %77 = call i32 @__uint32_identity(i32 noundef %76)
  store i32 %77, ptr %14, align 4, !tbaa !17
  %78 = load i32, ptr %14, align 4, !tbaa !17
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.mkdb_result_t, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %struct.anon, ptr %81, i32 0, i32 0
  store i32 %78, ptr %82, align 8, !tbaa !13
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %135

83:                                               ; preds = %64
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mkdb_result_t, ptr %85, i32 0, i32 0
  store i32 2, ptr %86, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %87 = load i64, ptr %11, align 8, !tbaa !11
  %88 = sub i64 %87, 1
  store i64 %88, ptr %15, align 8, !tbaa !11
  %89 = load i64, ptr %15, align 8, !tbaa !11
  %90 = add i64 %89, 1
  %91 = call noalias ptr @malloc(i64 noundef %90) #7
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mkdb_result_t, ptr %93, i32 0, i32 1
  store ptr %91, ptr %94, align 8, !tbaa !13
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.mkdb_result_t, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %114

100:                                              ; preds = %83
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mkdb_result_t, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 1
  %107 = load i64, ptr %15, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %104, ptr align 1 %106, i64 %107, i1 false)
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.mkdb_result_t, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !13
  %112 = load i64, ptr %15, align 8, !tbaa !11
  %113 = getelementptr inbounds i8, ptr %111, i64 %112
  store i8 0, ptr %113, align 1, !tbaa !13
  br label %114

114:                                              ; preds = %100, %83
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %135

115:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = call ptr @parse_query_result_payload(ptr noundef %116)
  store ptr %117, ptr %16, align 8, !tbaa !5
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %124, label %120

120:                                              ; preds = %115
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %121) #6
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  call void @free(ptr noundef %123) #6
  store i32 4, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %129

124:                                              ; preds = %115
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  call void @free(ptr noundef %126) #6
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %127, ptr %128, align 8, !tbaa !5
  store i32 2, ptr %10, align 4
  br label %129

129:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %130 = load i32, ptr %10, align 4
  switch i32 %130, label %137 [
    i32 2, label %135
  ]

131:                                              ; preds = %64
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %132) #6
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  call void @free(ptr noundef %134) #6
  store i32 4, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %137

135:                                              ; preds = %129, %114, %70
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %136) #6
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %137

137:                                              ; preds = %135, %131, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %138

138:                                              ; preds = %137, %62, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %139

139:                                              ; preds = %138, %47, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32768, ptr %8) #6
  br label %140

140:                                              ; preds = %139, %30
  %141 = load i32, ptr %4, align 4
  ret i32 %141
}

; Function Attrs: nounwind uwtable
declare hidden i64 @build_mkdb_command_msg(ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @receive_packet(ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @__uint32_identity(i32 noundef) #5

; Function Attrs: nounwind uwtable
declare hidden ptr @parse_query_result_payload(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 "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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"mkdb_t", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"", !16, i64 0, !7, i64 8}
!16 = !{!"int", !7, i64 0}
!17 = !{!16, !16, 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"

; 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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) #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @mkdb_exec(ptr noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [32768 x i8], align 16
  %5 = alloca i64, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %48, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  %9 = icmp ne ptr %1, null
  %or.cond = and i1 %9, %8
  %10 = icmp ne ptr %2, null
  %or.cond3 = and i1 %10, %or.cond
  br i1 %or.cond3, label %11, label %48

11:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 32768, ptr nonnull %4) #6
  %12 = call i64 @build_mkdb_command_msg(ptr noundef nonnull %4, i64 noundef 32768, ptr noundef nonnull %1)
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %47, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = call i64 @tcp_send(ptr noundef %15, ptr noundef nonnull %4, i64 noundef %12)
  %.not52 = icmp eq i64 %16, %12
  br i1 %.not52, label %17, label %47

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store i64 0, ptr %5, align 8, !tbaa !10
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = call ptr @receive_packet(ptr noundef %18, ptr noundef nonnull %5)
  %.not53 = icmp eq ptr %19, null
  br i1 %.not53, label %46, label %20

20:                                               ; preds = %17
  %21 = call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #7
  store ptr %21, ptr %2, align 8, !tbaa !12
  %.not54 = icmp eq ptr %21, null
  br i1 %.not54, label %22, label %23

22:                                               ; preds = %20
  call void @free(ptr noundef nonnull %19) #6
  br label %46

23:                                               ; preds = %20
  %24 = load i8, ptr %19, align 1, !tbaa !13
  switch i8 %24, label %43 [
    i8 33, label %25
    i8 45, label %30
    i8 43, label %38
  ]

25:                                               ; preds = %23
  store i32 0, ptr %21, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %19, i64 1
  %.0.copyload = load i32, ptr %26, align 1
  %27 = call i32 @__uint32_identity(i32 noundef %.0.copyload)
  %28 = load ptr, ptr %2, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %27, ptr %29, align 8, !tbaa !13
  br label %45

30:                                               ; preds = %23
  store i32 2, ptr %21, align 8, !tbaa !14
  %31 = load i64, ptr %5, align 8, !tbaa !10
  %32 = call noalias ptr @malloc(i64 noundef %31) #7
  %33 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %32, ptr %33, align 8, !tbaa !13
  %.not56 = icmp eq ptr %32, null
  br i1 %.not56, label %45, label %34

34:                                               ; preds = %30
  %35 = add i64 %31, -1
  %36 = getelementptr inbounds i8, ptr %19, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %32, ptr nonnull align 1 %36, i64 %35, i1 false)
  %37 = getelementptr inbounds i8, ptr %32, i64 %35
  store i8 0, ptr %37, align 1, !tbaa !13
  br label %45

38:                                               ; preds = %23
  %39 = call ptr @parse_query_result_payload(ptr noundef nonnull %19)
  %.not55.not = icmp eq ptr %39, null
  br i1 %.not55.not, label %.thread, label %41

.thread:                                          ; preds = %38
  call void @free(ptr noundef nonnull %19) #6
  %40 = load ptr, ptr %2, align 8, !tbaa !12
  call void @free(ptr noundef %40) #6
  br label %46

41:                                               ; preds = %38
  %42 = load ptr, ptr %2, align 8, !tbaa !12
  call void @free(ptr noundef %42) #6
  store ptr %39, ptr %2, align 8, !tbaa !12
  br label %45

43:                                               ; preds = %23
  call void @free(ptr noundef nonnull %19) #6
  %44 = load ptr, ptr %2, align 8, !tbaa !12
  call void @free(ptr noundef %44) #6
  br label %46

45:                                               ; preds = %41, %30, %34, %25
  call void @free(ptr noundef nonnull %19) #6
  br label %46

46:                                               ; preds = %.thread, %43, %45, %17, %22
  %.2 = phi i32 [ 5, %22 ], [ 3, %17 ], [ 4, %43 ], [ 0, %45 ], [ 4, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %47

47:                                               ; preds = %14, %11, %46
  %.3 = phi i32 [ %.2, %46 ], [ 4, %11 ], [ 2, %14 ]
  call void @llvm.lifetime.end.p0(i64 32768, ptr nonnull %4) #6
  br label %48

48:                                               ; preds = %3, %6, %47
  %.4 = phi i32 [ %.3, %47 ], [ 4, %6 ], [ 4, %3 ]
  ret i32 %.4
}

; Function Attrs: nounwind uwtable
declare hidden i64 @build_mkdb_command_msg(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @receive_packet(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @__uint32_identity(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden ptr @parse_query_result_payload(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"mkdb_t", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"", !16, i64 0, !8, i64 8}
!16 = !{!"int", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass