; LLVM IR from mwarning/KadNode :: src (announces)

; 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.gconf_t = type { i64, i64, ptr, ptr, ptr, ptr, ptr, i8, i8, i32, i32, i32, i32, ptr, i8, [8 x i8], i64, i64, i64, [8 x i32], [8 x i32] }
%struct.announcement_t = type { ptr, [20 x i8], [256 x i8], i32, i32, i64, i64 }

@g_values = external hidden global ptr, align 8
@gconf = external global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@g_announces_announce = external hidden global i64, align 8
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @announces_find(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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @announces_add(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca [256 x i8], align 16
  %9 = alloca [20 x i8], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  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 256, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 20, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %16 = load ptr, ptr @gconf, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.gconf_t, ptr %16, i32 0, i32 12
  %18 = load i32, ptr %17, align 8, !tbaa !11
  store i32 %18, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %19 = load ptr, ptr @gconf, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.gconf_t, ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !16
  store i64 %21, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %22 = getelementptr inbounds [20 x i8], ptr %9, i64 0, i64 0
  %23 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call i32 @parse_query(ptr noundef %22, ptr noundef %23, ptr noundef %12, ptr noundef %24)
  store i32 %25, ptr %14, align 4, !tbaa !15
  %26 = load i32, ptr %14, align 4, !tbaa !15
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %47

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

31:                                               ; preds = %28
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.11, ptr noundef %33) #7
  br label %46

35:                                               ; preds = %28
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @gconf, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.gconf_t, ptr %37, i32 0, i32 9
  %39 = load i32, ptr %38, align 4, !tbaa !17
  %40 = icmp ne i32 %39, 2
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i32, ptr, ...) @log_print(i32 noundef 4, ptr noundef @.str.12, ptr noundef %42)
  br label %43

43:                                               ; preds = %41, %36
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45, %31
  store ptr null, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %127

47:                                               ; preds = %3
  %48 = load i64, ptr %7, align 8, !tbaa !9
  %49 = load i64, ptr %13, align 8, !tbaa !9
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %47
  call void (i32, ptr, ...) @log_print(i32 noundef 3, ptr noundef @.str.13)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %127

52:                                               ; preds = %47
  %53 = getelementptr inbounds [20 x i8], ptr %9, i64 0, i64 0
  %54 = call ptr @announces_find(ptr noundef %53)
  store ptr %54, ptr %10, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %70

56:                                               ; preds = %52
  %57 = load i64, ptr %13, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.announcement_t, ptr %59, i32 0, i32 6
  store i64 %58, ptr %60, align 8, !tbaa !18
  %61 = load i64, ptr %7, align 8, !tbaa !9
  %62 = load i64, ptr %13, align 8, !tbaa !9
  %63 = icmp sgt i64 %61, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %56
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.announcement_t, ptr %66, i32 0, i32 5
  store i64 %65, ptr %67, align 8, !tbaa !20
  br label %68

68:                                               ; preds = %64, %56
  store i64 0, ptr @g_announces_announce, align 8, !tbaa !9
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %69, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %127

70:                                               ; preds = %52
  %71 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 312) #8
  store ptr %71, ptr %11, align 8, !tbaa !5
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.announcement_t, ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds [20 x i8], ptr %73, i64 0, i64 0
  %75 = getelementptr inbounds [20 x i8], ptr %9, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 16 %75, i64 20, i1 false)
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.announcement_t, ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds [256 x i8], ptr %77, i64 0, i64 0
  %79 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call i64 @strlen(ptr noundef %80) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 16 %79, i64 %81, i1 false)
  %82 = load i32, ptr %12, align 4, !tbaa !15
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.announcement_t, ptr %83, i32 0, i32 3
  store i32 %82, ptr %84, align 4, !tbaa !21
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.announcement_t, ptr %87, i32 0, i32 6
  store i64 %86, ptr %88, align 8, !tbaa !18
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.announcement_t, ptr %90, i32 0, i32 5
  store i64 %89, ptr %91, align 8, !tbaa !20
  %92 = load i32, ptr %14, align 4, !tbaa !15
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.announcement_t, ptr %93, i32 0, i32 4
  store i32 %92, ptr %94, align 8, !tbaa !22
  %95 = load i64, ptr %7, align 8, !tbaa !9
  %96 = icmp eq i64 %95, 9223372036854775807
  br i1 %96, label %97, label %107

97:                                               ; preds = %70
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %105

100:                                              ; preds = %97
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !15
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.14, ptr noundef %102, i32 noundef %103) #7
  br label %106

105:                                              ; preds = %97
  br label %106

106:                                              ; preds = %105, %100
  br label %121

107:                                              ; preds = %70
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %119

110:                                              ; preds = %107
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !15
  %114 = load i64, ptr %7, align 8, !tbaa !9
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = sub nsw i64 %114, %115
  %117 = sdiv i64 %116, 60
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.15, ptr noundef %112, i32 noundef %113, i64 noundef %117) #7
  br label %120

119:                                              ; preds = %107
  br label %120

120:                                              ; preds = %119, %110
  br label %121

121:                                              ; preds = %120, %106
  %122 = load ptr, ptr @g_values, align 8, !tbaa !5
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.announcement_t, ptr %123, i32 0, i32 0
  store ptr %122, ptr %124, align 8, !tbaa !23
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %125, ptr @g_values, align 8, !tbaa !5
  store i64 0, ptr @g_announces_announce, align 8, !tbaa !9
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %126, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %127

127:                                              ; preds = %121, %68, %51, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 20, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #7
  %128 = load ptr, ptr %4, align 8
  ret ptr %128
}

declare i32 @parse_query(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @log_print(i32 noundef, ptr noundef, ...) #3

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

; 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) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

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

!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, !14, i64 72}
!12 = !{!"gconf_t", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 57, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !6, i64 80, !7, i64 88, !7, i64 89, !10, i64 104, !10, i64 112, !10, i64 120, !7, i64 128, !7, i64 160}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !14, i64 60}
!18 = !{!19, !10, i64 304}
!19 = !{!"announcement_t", !6, i64 0, !7, i64 8, !7, i64 28, !14, i64 284, !14, i64 288, !10, i64 296, !10, i64 304}
!20 = !{!19, !10, i64 296}
!21 = !{!19, !14, i64 284}
!22 = !{!19, !14, i64 288}
!23 = !{!19, !6, 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"

@g_values = external hidden local_unnamed_addr global ptr, align 8
@gconf = external local_unnamed_addr global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@g_announces_announce = external hidden local_unnamed_addr global i64, align 8
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @announces_find(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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @announces_add(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = alloca [256 x i8], align 16
  %5 = alloca [20 x i8], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %7 = load ptr, ptr @gconf, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 72
  %9 = load i32, ptr %8, align 8, !tbaa !9
  store i32 %9, ptr %6, align 4, !tbaa !14
  %10 = load i64, ptr %7, align 8, !tbaa !15
  %11 = call i32 @parse_query(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef %1) #7
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %21

13:                                               ; preds = %3
  %.not44 = icmp eq ptr %0, null
  br i1 %.not44, label %16, label %14

14:                                               ; preds = %13
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %0, ptr noundef nonnull @.str.11, ptr noundef %1) #7
  br label %55

16:                                               ; preds = %13
  %17 = load ptr, ptr @gconf, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 60
  %19 = load i32, ptr %18, align 4, !tbaa !16
  %.not45 = icmp eq i32 %19, 2
  br i1 %.not45, label %55, label %20

20:                                               ; preds = %16
  call void (i32, ptr, ...) @log_print(i32 noundef 4, ptr noundef nonnull @.str.12, ptr noundef %1) #7
  br label %55

21:                                               ; preds = %3
  %22 = icmp sgt i64 %10, %2
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  call void (i32, ptr, ...) @log_print(i32 noundef 3, ptr noundef nonnull @.str.13) #7
  br label %55

24:                                               ; preds = %21
  %25 = call ptr @announces_find(ptr noundef nonnull %5)
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %33, label %26

26:                                               ; preds = %24
  %27 = add nsw i64 %10, -1
  %28 = getelementptr inbounds i8, ptr %25, i64 304
  store i64 %27, ptr %28, align 8, !tbaa !17
  %29 = icmp slt i64 %10, %2
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %25, i64 296
  store i64 %2, ptr %31, align 8, !tbaa !19
  br label %32

32:                                               ; preds = %30, %26
  store i64 0, ptr @g_announces_announce, align 8, !tbaa !20
  br label %55

33:                                               ; preds = %24
  %34 = call noalias dereferenceable_or_null(312) ptr @calloc(i64 noundef 1, i64 noundef 312) #8
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %35, ptr noundef nonnull align 16 dereferenceable(20) %5, i64 20, i1 false)
  %36 = getelementptr inbounds i8, ptr %34, i64 28
  %37 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %36, ptr nonnull align 16 %4, i64 %37, i1 false)
  %38 = load i32, ptr %6, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %34, i64 284
  store i32 %38, ptr %39, align 4, !tbaa !21
  %40 = add nsw i64 %10, -1
  %41 = getelementptr inbounds i8, ptr %34, i64 304
  store i64 %40, ptr %41, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %34, i64 296
  store i64 %2, ptr %42, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %34, i64 288
  store i32 %11, ptr %43, align 8, !tbaa !22
  %44 = icmp eq i64 %2, 9223372036854775807
  %.not43 = icmp eq ptr %0, null
  br i1 %44, label %45, label %48

45:                                               ; preds = %33
  br i1 %.not43, label %53, label %46

46:                                               ; preds = %45
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %0, ptr noundef nonnull @.str.14, ptr noundef %1, i32 noundef %38) #7
  br label %53

48:                                               ; preds = %33
  br i1 %.not43, label %53, label %49

49:                                               ; preds = %48
  %50 = sub nsw i64 %2, %10
  %51 = sdiv i64 %50, 60
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %0, ptr noundef nonnull @.str.15, ptr noundef %1, i32 noundef %38, i64 noundef %51) #7
  br label %53

53:                                               ; preds = %49, %48, %46, %45
  %54 = load ptr, ptr @g_values, align 8, !tbaa !5
  store ptr %54, ptr %34, align 8, !tbaa !23
  store ptr %34, ptr @g_values, align 8, !tbaa !5
  store i64 0, ptr @g_announces_announce, align 8, !tbaa !20
  br label %55

55:                                               ; preds = %14, %20, %16, %53, %32, %23
  %.0 = phi ptr [ null, %23 ], [ %25, %32 ], [ %34, %53 ], [ null, %16 ], [ null, %20 ], [ null, %14 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #7
  ret ptr %.0
}

declare i32 @parse_query(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @log_print(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

; 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) #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

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 = { nofree 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 = { "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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind willreturn memory(read) }

!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, !13, i64 72}
!10 = !{!"gconf_t", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 57, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !6, i64 80, !7, i64 88, !7, i64 89, !11, i64 104, !11, i64 112, !11, i64 120, !7, i64 128, !7, i64 160}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!10, !13, i64 60}
!17 = !{!18, !11, i64 304}
!18 = !{!"announcement_t", !6, i64 0, !7, i64 8, !7, i64 28, !13, i64 284, !13, i64 288, !11, i64 296, !11, i64 304}
!19 = !{!18, !11, i64 296}
!20 = !{!11, !11, i64 0}
!21 = !{!18, !13, i64 284}
!22 = !{!18, !13, i64 288}
!23 = !{!18, !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass