; LLVM IR from ros2/rcutils :: src (shared_library)

; 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.rcutils_allocator_s = type { ptr, ptr, ptr, ptr, ptr }
%struct.rcutils_shared_library_s = type { ptr, ptr, %struct.rcutils_allocator_s }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @rcutils_load_shared_library(ptr noundef %0, ptr noundef %1, ptr noundef byval(%struct.rcutils_allocator_s) align 8 %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [1024 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [1024 x i8], align 16
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %3
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr null, %14
  br i1 %15, label %16, label %19

16:                                               ; preds = %13
  br label %17

17:                                               ; preds = %16
  call void @rcutils_set_error_state(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 73)
  br label %18

18:                                               ; preds = %17
  store i32 11, ptr %4, align 4
  br label %123

19:                                               ; preds = %13
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp eq ptr null, %22
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  br label %25

25:                                               ; preds = %24
  call void @rcutils_set_error_state(ptr noundef @.str.2, ptr noundef @.str.1, i64 noundef 74)
  br label %26

26:                                               ; preds = %25
  store i32 11, ptr %4, align 4
  br label %123

27:                                               ; preds = %21
  br label %28

28:                                               ; preds = %27
  %29 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef %2)
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  store i32 11, ptr %4, align 4
  br label %123

31:                                               ; preds = %28
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = icmp ne ptr null, %34
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  br label %37

37:                                               ; preds = %36
  call void @rcutils_set_error_state(ptr noundef @.str.3, ptr noundef @.str.1, i64 noundef 77)
  br label %38

38:                                               ; preds = %37
  store i32 11, ptr %4, align 4
  br label %123

39:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !12
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %40, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %2, i64 40, i1 false), !tbaa.struct !14
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call ptr @dlopen(ptr noundef %42, i32 noundef 1) #6
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %44, i32 0, i32 0
  store ptr %43, ptr %45, align 8, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = icmp eq ptr null, %48
  br i1 %49, label %50, label %71

50:                                               ; preds = %39
  br label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %52 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %53 = call ptr @dlerror() #6
  %54 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %52, i64 noundef 1024, ptr noundef @.str.4, ptr noundef %53)
  store i32 %54, ptr %9, align 4, !tbaa !12
  %55 = load i32, ptr %9, align 4, !tbaa !12
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %57, label %63

57:                                               ; preds = %51
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i64 @fwrite(ptr noundef @.str.5, i64 noundef 1, i64 noundef 53, ptr noundef %59)
  br label %61

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61
  br label %68

63:                                               ; preds = %51
  br label %64

64:                                               ; preds = %63
  %65 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  call void @rcutils_set_error_state(ptr noundef %65, ptr noundef @.str.1, i64 noundef 96)
  br label %66

66:                                               ; preds = %64
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #6
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %122

71:                                               ; preds = %39
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %73, i32 0, i32 2
  %75 = call ptr @rcutils_strdup(ptr noundef %72, ptr noundef byval(%struct.rcutils_allocator_s) align 8 %74)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %76, i32 0, i32 1
  store ptr %75, ptr %77, align 8, !tbaa !15
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = icmp eq ptr null, %80
  br i1 %81, label %82, label %86

82:                                               ; preds = %71
  br label %83

83:                                               ; preds = %82
  call void @rcutils_set_error_state(ptr noundef @.str.6, ptr noundef @.str.1, i64 noundef 139)
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  store i32 10, ptr %7, align 4, !tbaa !12
  br label %87

86:                                               ; preds = %71
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %122

87:                                               ; preds = %85
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call i32 @dlclose(ptr noundef %90) #6
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %118

93:                                               ; preds = %87
  br label %94

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %95 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %96 = call ptr @dlerror() #6
  %97 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %95, i64 noundef 1024, ptr noundef @.str.7, ptr noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !12
  %98 = load i32, ptr %12, align 4, !tbaa !12
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %100, label %106

100:                                              ; preds = %94
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i64 @fwrite(ptr noundef @.str.5, i64 noundef 1, i64 noundef 53, ptr noundef %102)
  br label %104

104:                                              ; preds = %101
  br label %105

105:                                              ; preds = %104
  br label %115

106:                                              ; preds = %94
  br label %107

107:                                              ; preds = %106
  %108 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %109 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %110 = call i64 @strlen(ptr noundef %109) #7
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i64 @fwrite(ptr noundef %108, i64 noundef 1, i64 noundef %110, ptr noundef %111)
  br label %113

113:                                              ; preds = %107
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #6
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117, %87
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.rcutils_shared_library_s, ptr %119, i32 0, i32 0
  store ptr null, ptr %120, align 8, !tbaa !9
  %121 = load i32, ptr %7, align 4, !tbaa !12
  store i32 %121, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %122

122:                                              ; preds = %118, %86, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %123

123:                                              ; preds = %122, %38, %30, %26, %18
  %124 = load i32, ptr %4, align 4
  ret i32 %124
}

declare void @rcutils_set_error_state(ptr noundef, ptr noundef, i64 noundef) #2

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) #2

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

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) #4

declare i32 @rcutils_snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare ptr @dlerror() #4

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

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

declare ptr @rcutils_strdup(ptr noundef, ptr noundef byval(%struct.rcutils_allocator_s) align 8) #2

; Function Attrs: nounwind
declare i32 @dlclose(ptr noundef) #4

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

attributes #0 = { nocallback nofree 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { 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, !6, i64 0}
!10 = !{!"rcutils_shared_library_s", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"rcutils_allocator_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}
!15 = !{!10, !6, i64 8}


; 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.rcutils_allocator_s = type { ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 12) i32 @rcutils_load_shared_library(ptr noundef %0, ptr noundef %1, ptr noundef byval(%struct.rcutils_allocator_s) align 8 %2) local_unnamed_addr #1 {
  %4 = alloca [1024 x i8], align 16
  %5 = alloca [1024 x i8], align 16
  %6 = icmp eq ptr %0, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %3
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 73) #7
  br label %49

8:                                                ; preds = %3
  %9 = icmp eq ptr %1, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i64 noundef 74) #7
  br label %49

11:                                               ; preds = %8
  %12 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef nonnull %2) #7
  br i1 %12, label %13, label %49

13:                                               ; preds = %11
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %14, null
  br i1 %.not, label %16, label %15

15:                                               ; preds = %13
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i64 noundef 77) #7
  br label %49

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %2, i64 40, i1 false), !tbaa.struct !11
  %18 = call ptr @dlopen(ptr noundef nonnull %1, i32 noundef 1) #7
  store ptr %18, ptr %0, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %29

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #7
  %21 = call ptr @dlerror() #7
  %22 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %4, i64 noundef 1024, ptr noundef nonnull @.str.4, ptr noundef %21) #7
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %27

24:                                               ; preds = %20
  %25 = load ptr, ptr @stderr, align 8, !tbaa !12
  %26 = call i64 @fwrite(ptr noundef nonnull @.str.5, i64 noundef 1, i64 noundef 53, ptr noundef %25) #8
  br label %28

27:                                               ; preds = %20
  call void @rcutils_set_error_state(ptr noundef nonnull %4, ptr noundef nonnull @.str.1, i64 noundef 96) #7
  br label %28

28:                                               ; preds = %27, %24
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
  br label %49

29:                                               ; preds = %16
  %30 = call ptr @rcutils_strdup(ptr noundef nonnull %1, ptr noundef nonnull byval(%struct.rcutils_allocator_s) align 8 %17) #7
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %30, ptr %31, align 8, !tbaa !13
  %32 = icmp eq ptr %30, null
  br i1 %32, label %33, label %49

33:                                               ; preds = %29
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i64 noundef 139) #7
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = call i32 @dlclose(ptr noundef %34) #7
  %.not18 = icmp eq i32 %35, 0
  br i1 %.not18, label %48, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #7
  %37 = call ptr @dlerror() #7
  %38 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %5, i64 noundef 1024, ptr noundef nonnull @.str.7, ptr noundef %37) #7
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !12
  %42 = call i64 @fwrite(ptr noundef nonnull @.str.5, i64 noundef 1, i64 noundef 53, ptr noundef %41) #8
  br label %47

43:                                               ; preds = %36
  %44 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #9
  %45 = load ptr, ptr @stderr, align 8, !tbaa !12
  %46 = call i64 @fwrite(ptr noundef nonnull %5, i64 noundef 1, i64 noundef %44, ptr noundef %45) #8
  br label %47

47:                                               ; preds = %43, %40
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #7
  br label %48

48:                                               ; preds = %47, %33
  store ptr null, ptr %0, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %28, %48, %29, %11, %15, %10, %7
  %.1 = phi i32 [ 11, %7 ], [ 11, %10 ], [ 11, %15 ], [ 11, %11 ], [ 2, %28 ], [ 10, %48 ], [ 0, %29 ]
  ret i32 %.1
}

declare void @rcutils_set_error_state(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare ptr @dlerror() local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5

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

declare ptr @rcutils_strdup(ptr noundef, ptr noundef byval(%struct.rcutils_allocator_s) align 8) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @dlclose(ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #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 = { cold }
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, !7, i64 0}
!6 = !{!"rcutils_shared_library_s", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"rcutils_allocator_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 8}


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