; LLVM IR from seppo0010/rlite :: src (hirlite)

; 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.timeval = type { i64, i64 }
%struct.rliteClient = type { i32, ptr, ptr, ptr, ptr, i32 }
%struct.rliteContext = type { i32, [128 x i8], ptr, ptr, i32, i32, i32, ptr, i32, i32, i64, i64, i32, ptr, i16, i16, i64, i64, ptr, i64, i64, ptr }

@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

; 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 ptr @createErrorObject(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @pubsubPollCommand(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %struct.timeval, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.rliteClient, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp sge i32 %12, 2
  br i1 %13, label %14, label %52

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.rliteClient, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = getelementptr inbounds ptr, ptr %18, i64 1
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.rliteClient, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr inbounds i64, ptr %23, i64 1
  %25 = load i64, ptr %24, align 8, !tbaa !14
  %26 = call i32 @getLongFromObjectOrReply(ptr noundef %15, ptr noundef %20, i64 noundef %25, ptr noundef %7, ptr noundef null)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %14
  store i32 1, ptr %9, align 4
  br label %49

29:                                               ; preds = %14
  %30 = load i64, ptr %7, align 8, !tbaa !14
  %31 = icmp ne i64 %30, 0
  br i1 %31, label %32, label %36

32:                                               ; preds = %29
  %33 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 0
  store i64 0, ptr %33, align 8, !tbaa !16
  %34 = load i64, ptr %7, align 8, !tbaa !14
  %35 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 1
  store i64 %34, ptr %35, align 8, !tbaa !18
  br label %36

36:                                               ; preds = %32, %29
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.rliteClient, ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = getelementptr inbounds %struct.rliteContext, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = load i64, ptr %7, align 8, !tbaa !14
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %36
  br label %46

45:                                               ; preds = %36
  br label %46

46:                                               ; preds = %45, %44
  %47 = phi ptr [ null, %44 ], [ %8, %45 ]
  %48 = call i32 @rl_poll_wait(ptr noundef %41, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %47)
  store i32 %48, ptr %3, align 4, !tbaa !23
  store i32 0, ptr %9, align 4
  br label %49

49:                                               ; preds = %46, %28
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %50 = load i32, ptr %9, align 4
  switch i32 %50, label %133 [
    i32 0, label %51
  ]

51:                                               ; preds = %49
  br label %59

52:                                               ; preds = %1
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.rliteClient, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = getelementptr inbounds %struct.rliteContext, ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = call i32 @rl_poll(ptr noundef %57, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  store i32 %58, ptr %3, align 4, !tbaa !23
  br label %59

59:                                               ; preds = %52, %51
  %60 = load i32, ptr %3, align 4, !tbaa !23
  %61 = icmp eq i32 %60, 8
  br i1 %61, label %62, label %66

62:                                               ; preds = %59
  %63 = call ptr @createErrorObject(ptr noundef @.str.9)
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.rliteClient, ptr %64, i32 0, i32 3
  store ptr %63, ptr %65, align 8, !tbaa !24
  br label %132

66:                                               ; preds = %59
  %67 = load i32, ptr %3, align 4, !tbaa !23
  %68 = icmp eq i32 %67, 6
  br i1 %68, label %69, label %73

69:                                               ; preds = %66
  %70 = call ptr @createErrorObject(ptr noundef @.str.10)
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.rliteClient, ptr %71, i32 0, i32 3
  store ptr %70, ptr %72, align 8, !tbaa !24
  br label %132

73:                                               ; preds = %66
  %74 = load i32, ptr %3, align 4, !tbaa !23
  %75 = icmp eq i32 %74, 12
  br i1 %75, label %76, label %80

76:                                               ; preds = %73
  %77 = call ptr @createErrorObject(ptr noundef @.str.11)
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.rliteClient, ptr %78, i32 0, i32 3
  store ptr %77, ptr %79, align 8, !tbaa !24
  br label %132

80:                                               ; preds = %73
  %81 = load i32, ptr %3, align 4, !tbaa !23
  %82 = icmp eq i32 %81, 11
  br i1 %82, label %83, label %87

83:                                               ; preds = %80
  %84 = call ptr @createErrorObject(ptr noundef @.str.12)
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.rliteClient, ptr %85, i32 0, i32 3
  store ptr %84, ptr %86, align 8, !tbaa !24
  br label %132

87:                                               ; preds = %80
  %88 = load i32, ptr %3, align 4, !tbaa !23
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %99

90:                                               ; preds = %87
  %91 = load i32, ptr %3, align 4, !tbaa !23
  %92 = icmp ne i32 %91, 3
  br i1 %92, label %93, label %99

93:                                               ; preds = %90
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.rliteClient, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !19
  %97 = load i32, ptr %3, align 4, !tbaa !23
  %98 = call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %96, ptr noundef @.str.13, i32 noundef %97)
  br label %132

99:                                               ; preds = %90, %87
  %100 = load i32, ptr %3, align 4, !tbaa !23
  %101 = icmp eq i32 %100, 3
  br i1 %101, label %102, label %119

102:                                              ; preds = %99
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.rliteClient, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  %106 = getelementptr inbounds %struct.rliteContext, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %106, align 8, !tbaa !25
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.rliteClient, ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = getelementptr inbounds %struct.rliteContext, ptr %110, i32 0, i32 5
  %112 = load i32, ptr %111, align 4, !tbaa !26
  %113 = icmp eq i32 %107, %112
  br i1 %113, label %114, label %118

114:                                              ; preds = %102
  %115 = call ptr @createReplyObject(i32 noundef 4)
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.rliteClient, ptr %116, i32 0, i32 3
  store ptr %115, ptr %117, align 8, !tbaa !24
  br label %118

118:                                              ; preds = %114, %102
  br label %131

119:                                              ; preds = %99
  %120 = load i32, ptr %3, align 4, !tbaa !23
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %130

122:                                              ; preds = %119
  %123 = load i32, ptr %4, align 4, !tbaa !23
  %124 = sext i32 %123 to i64
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call ptr @pollToReply(i64 noundef %124, ptr noundef %125, ptr noundef %126)
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.rliteClient, ptr %128, i32 0, i32 3
  store ptr %127, ptr %129, align 8, !tbaa !24
  br label %130

130:                                              ; preds = %122, %119
  br label %131

131:                                              ; preds = %130, %118
  br label %132

132:                                              ; preds = %131, %93, %83, %76, %69, %62
  store i32 1, ptr %9, align 4
  br label %133

133:                                              ; preds = %132, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

declare i32 @rl_poll_wait(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @rl_poll(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @pollToReply(i64 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 = { "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 }

!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, !11, i64 0}
!10 = !{!"rliteClient", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"timeval", !15, i64 0, !15, i64 8}
!18 = !{!17, !15, i64 8}
!19 = !{!10, !6, i64 32}
!20 = !{!21, !6, i64 168}
!21 = !{!"rliteContext", !11, i64 0, !7, i64 4, !6, i64 136, !6, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !15, i64 184, !15, i64 192, !11, i64 200, !6, i64 208, !22, i64 216, !22, i64 218, !15, i64 224, !15, i64 232, !6, i64 240, !15, i64 248, !15, i64 256, !6, i64 264}
!22 = !{!"short", !7, i64 0}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 24}
!25 = !{!21, !11, i64 152}
!26 = !{!21, !11, i64 156}


; 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.timeval = type { i64, i64 }

@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

; 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 ptr @createErrorObject(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @pubsubPollCommand(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %7 = load i32, ptr %0, align 8, !tbaa !5
  %8 = icmp sgt i32 %7, 1
  br i1 %8, label %9, label %29

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !14
  %18 = call i32 @getLongFromObjectOrReply(ptr noundef nonnull %0, ptr noundef %13, i64 noundef %17, ptr noundef nonnull %5, ptr noundef null)
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %19, label %28

19:                                               ; preds = %9
  %20 = load i64, ptr %5, align 8, !tbaa !14
  %.not26 = icmp eq i64 %20, 0
  br i1 %.not26, label %.thread, label %21

21:                                               ; preds = %19
  store i64 0, ptr %6, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %20, ptr %22, align 8, !tbaa !18
  br label %.thread

.thread:                                          ; preds = %19, %21
  %. = phi ptr [ null, %19 ], [ %6, %21 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load ptr, ptr %23, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %24, i64 168
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = call i32 @rl_poll_wait(ptr noundef %26, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %.) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %35

28:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %70

29:                                               ; preds = %1
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %31, i64 168
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %34 = call i32 @rl_poll(ptr noundef %33, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
  br label %35

35:                                               ; preds = %.thread, %29
  %.1 = phi i32 [ %34, %29 ], [ %27, %.thread ]
  switch i32 %.1, label %48 [
    i32 8, label %36
    i32 6, label %39
    i32 12, label %42
    i32 11, label %45
    i32 3, label %52
    i32 0, label %63
  ]

36:                                               ; preds = %35
  %37 = call ptr @createErrorObject(ptr noundef nonnull @.str.9)
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %37, ptr %38, align 8, !tbaa !23
  br label %70

39:                                               ; preds = %35
  %40 = call ptr @createErrorObject(ptr noundef nonnull @.str.10)
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %40, ptr %41, align 8, !tbaa !23
  br label %70

42:                                               ; preds = %35
  %43 = call ptr @createErrorObject(ptr noundef nonnull @.str.11)
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %43, ptr %44, align 8, !tbaa !23
  br label %70

45:                                               ; preds = %35
  %46 = call ptr @createErrorObject(ptr noundef nonnull @.str.12)
  %47 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %46, ptr %47, align 8, !tbaa !23
  br label %70

48:                                               ; preds = %35
  %49 = getelementptr inbounds i8, ptr %0, i64 32
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %51 = call i32 (ptr, ptr, ...) @addReplyErrorFormat(ptr noundef %50, ptr noundef nonnull @.str.13, i32 noundef %.1)
  br label %70

52:                                               ; preds = %35
  %53 = getelementptr inbounds i8, ptr %0, i64 32
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %54, i64 152
  %56 = load i32, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds i8, ptr %54, i64 156
  %58 = load i32, ptr %57, align 4, !tbaa !25
  %59 = icmp eq i32 %56, %58
  br i1 %59, label %60, label %70

60:                                               ; preds = %52
  %61 = call ptr @createReplyObject(i32 noundef 4)
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %61, ptr %62, align 8, !tbaa !23
  br label %70

63:                                               ; preds = %35
  %64 = load i32, ptr %2, align 4, !tbaa !26
  %65 = sext i32 %64 to i64
  %66 = load ptr, ptr %3, align 8, !tbaa !12
  %67 = load ptr, ptr %4, align 8, !tbaa !12
  %68 = call ptr @pollToReply(i64 noundef %65, ptr noundef %66, ptr noundef %67)
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %68, ptr %69, align 8, !tbaa !23
  br label %70

70:                                               ; preds = %28, %36, %39, %42, %45, %48, %63, %52, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret void
}

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

declare i32 @rl_poll_wait(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @rl_poll(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress 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 = { "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 }

!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 = !{!"rliteClient", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"timeval", !15, i64 0, !15, i64 8}
!18 = !{!17, !15, i64 8}
!19 = !{!6, !10, i64 32}
!20 = !{!21, !10, i64 168}
!21 = !{!"rliteContext", !7, i64 0, !8, i64 4, !10, i64 136, !10, i64 144, !7, i64 152, !7, i64 156, !7, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !15, i64 184, !15, i64 192, !7, i64 200, !10, i64 208, !22, i64 216, !22, i64 218, !15, i64 224, !15, i64 232, !10, i64 240, !15, i64 248, !15, i64 256, !10, i64 264}
!22 = !{!"short", !8, i64 0}
!23 = !{!6, !10, i64 24}
!24 = !{!21, !7, i64 152}
!25 = !{!21, !7, i64 156}
!26 = !{!7, !7, i64 0}


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