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

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

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

17:                                               ; preds = %14
  br label %18

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

19:                                               ; preds = %18
  store ptr null, ptr %4, align 8
  br label %147

20:                                               ; preds = %14
  br label %21

21:                                               ; preds = %20
  br label %22

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

25:                                               ; preds = %22
  br label %26

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

27:                                               ; preds = %26
  store ptr null, ptr %4, align 8
  br label %147

28:                                               ; preds = %22
  br label %29

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

31:                                               ; preds = %29
  br label %32

32:                                               ; preds = %31
  call void @rcutils_set_error_state(ptr noundef @.str.3, ptr noundef @.str.1, i64 noundef 39)
  br label %33

33:                                               ; preds = %32
  store ptr null, ptr %4, align 8
  br label %147

34:                                               ; preds = %29
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp ult i64 %37, 1
  br i1 %38, label %39, label %41

39:                                               ; preds = %34
  %40 = call ptr @rcutils_strdup(ptr noundef @.str.4, ptr noundef byval(%struct.rcutils_allocator_s) align 8 %2)
  store ptr %40, ptr %4, align 8
  br label %147

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call i64 @strlen(ptr noundef %42) #6
  store i64 %43, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %44 = load i64, ptr %7, align 8, !tbaa !13
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = sub i64 %47, 1
  %49 = mul i64 %44, %48
  store i64 %49, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %76, %41
  %51 = load i64, ptr %9, align 8, !tbaa !13
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = icmp ult i64 %51, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %79

57:                                               ; preds = %50
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = load i64, ptr %9, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %60, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %75

65:                                               ; preds = %57
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !14
  %69 = load i64, ptr %9, align 8, !tbaa !13
  %70 = getelementptr inbounds ptr, ptr %68, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = call i64 @strlen(ptr noundef %71) #6
  %73 = load i64, ptr %8, align 8, !tbaa !13
  %74 = add i64 %73, %72
  store i64 %74, ptr %8, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %65, %57
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %9, align 8, !tbaa !13
  %78 = add i64 %77, 1
  store i64 %78, ptr %9, align 8, !tbaa !13
  br label %50, !llvm.loop !15

79:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %80 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %2, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = load i64, ptr %8, align 8, !tbaa !13
  %83 = add i64 %82, 1
  %84 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %2, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = call ptr %81(i64 noundef %83, ptr noundef %85)
  store ptr %86, ptr %10, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = icmp eq ptr null, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %79
  br label %90

90:                                               ; preds = %89
  call void @rcutils_set_error_state(ptr noundef @.str.5, ptr noundef @.str.1, i64 noundef 56)
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %146

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %94, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %95

95:                                               ; preds = %140, %93
  %96 = load i64, ptr %13, align 8, !tbaa !13
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %97, i32 0, i32 0
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp ult i64 %96, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %95
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %143

102:                                              ; preds = %95
  %103 = load i64, ptr %13, align 8, !tbaa !13
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %112

105:                                              ; preds = %102
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load i64, ptr %7, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %106, ptr align 1 %107, i64 %108, i1 false)
  %109 = load i64, ptr %7, align 8, !tbaa !13
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 %109
  store ptr %111, ptr %12, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %105, %102
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !14
  %116 = load i64, ptr %13, align 8, !tbaa !13
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %139

120:                                              ; preds = %112
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !14
  %124 = load i64, ptr %13, align 8, !tbaa !13
  %125 = getelementptr inbounds ptr, ptr %123, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = call i64 @strlen(ptr noundef %126) #6
  store i64 %127, ptr %8, align 8, !tbaa !13
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.rcutils_string_array_s, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !14
  %132 = load i64, ptr %13, align 8, !tbaa !13
  %133 = getelementptr inbounds ptr, ptr %131, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr %8, align 8, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %128, ptr align 1 %134, i64 %135, i1 false)
  %136 = load i64, ptr %8, align 8, !tbaa !13
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 %136
  store ptr %138, ptr %12, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %120, %112
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %13, align 8, !tbaa !13
  %142 = add i64 %141, 1
  store i64 %142, ptr %13, align 8, !tbaa !13
  br label %95, !llvm.loop !19

143:                                              ; preds = %101
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 0, ptr %144, align 1, !tbaa !20
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %145, ptr %4, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %146

146:                                              ; preds = %143, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %147

147:                                              ; preds = %146, %39, %33, %27, %19
  %148 = load ptr, ptr %4, align 8
  ret ptr %148
}

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

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) #1

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

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

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

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

; 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

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"rcutils_string_array_s", !11, i64 0, !6, i64 8, !12, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!"rcutils_allocator_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !6, i64 0}
!18 = !{!12, !6, i64 32}
!19 = distinct !{!19, !16}
!20 = !{!7, !7, 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"

%struct.rcutils_allocator_s = type { ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @rcutils_join(ptr noundef readonly %0, ptr noundef readonly %1, ptr noundef byval(%struct.rcutils_allocator_s) align 8 %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %3
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 36) #4
  br label %58

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

8:                                                ; preds = %6
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i64 noundef 37) #4
  br label %58

9:                                                ; preds = %6
  %10 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef nonnull %2) #4
  br i1 %10, label %12, label %11

11:                                               ; preds = %9
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i64 noundef 39) #4
  br label %58

12:                                               ; preds = %9
  %13 = load i64, ptr %0, align 8, !tbaa !5
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %12
  %16 = call ptr @rcutils_strdup(ptr noundef nonnull @.str.4, ptr noundef nonnull byval(%struct.rcutils_allocator_s) align 8 %2) #4
  br label %58

17:                                               ; preds = %12
  %18 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #5
  %19 = add i64 %13, -1
  %20 = mul i64 %18, %19
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !12
  br label %38

23:                                               ; preds = %44
  %24 = load ptr, ptr %2, align 8, !tbaa !13
  %25 = add i64 %.143, 1
  %26 = getelementptr inbounds i8, ptr %2, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = call ptr %24(i64 noundef %25, ptr noundef %27) #4
  %29 = icmp eq ptr %28, null
  br i1 %29, label %46, label %.preheader

.preheader:                                       ; preds = %23
  %30 = load i64, ptr %0, align 8, !tbaa !5
  %.not56 = icmp eq i64 %30, 0
  br i1 %.not56, label %._crit_edge, label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.preheader
  %.pre = load ptr, ptr %21, align 8, !tbaa !12
  %31 = load ptr, ptr %.pre, align 8, !tbaa !15
  %.not50.peel = icmp eq ptr %31, null
  br i1 %.not50.peel, label %35, label %32

32:                                               ; preds = %.lr.ph._crit_edge
  %33 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %31) #5
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %28, ptr nonnull align 1 %31, i64 %33, i1 false)
  %34 = getelementptr inbounds i8, ptr %28, i64 %33
  %.pre58 = load i64, ptr %0, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %32, %.lr.ph._crit_edge
  %36 = phi i64 [ %.pre58, %32 ], [ %30, %.lr.ph._crit_edge ]
  %.2.peel = phi ptr [ %34, %32 ], [ %28, %.lr.ph._crit_edge ]
  %37 = icmp ugt i64 %36, 1
  br i1 %37, label %.peel.next, label %._crit_edge

38:                                               ; preds = %17, %44
  %.04153 = phi i64 [ 0, %17 ], [ %45, %44 ]
  %.04252 = phi i64 [ %20, %17 ], [ %.143, %44 ]
  %39 = getelementptr inbounds ptr, ptr %22, i64 %.04153
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %.not51 = icmp eq ptr %40, null
  br i1 %.not51, label %44, label %41

41:                                               ; preds = %38
  %42 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %40) #5
  %43 = add i64 %42, %.04252
  br label %44

44:                                               ; preds = %38, %41
  %.143 = phi i64 [ %43, %41 ], [ %.04252, %38 ]
  %45 = add nuw i64 %.04153, 1
  %exitcond.not = icmp eq i64 %45, %13
  br i1 %exitcond.not, label %23, label %38, !llvm.loop !16

46:                                               ; preds = %23
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i64 noundef 56) #4
  br label %58

._crit_edge:                                      ; preds = %54, %35, %.preheader
  %.038.lcssa = phi ptr [ %28, %.preheader ], [ %.2.peel, %35 ], [ %.2, %54 ]
  store i8 0, ptr %.038.lcssa, align 1, !tbaa !18
  br label %58

.peel.next:                                       ; preds = %35, %54
  %.055 = phi i64 [ %55, %54 ], [ 1, %35 ]
  %.03854 = phi ptr [ %.2, %54 ], [ %.2.peel, %35 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.03854, ptr nonnull align 1 %1, i64 %18, i1 false)
  %47 = getelementptr inbounds i8, ptr %.03854, i64 %18
  %48 = load ptr, ptr %21, align 8, !tbaa !12
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.055
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %.not50 = icmp eq ptr %50, null
  br i1 %.not50, label %54, label %51

51:                                               ; preds = %.peel.next
  %52 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %50) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %47, ptr nonnull align 1 %50, i64 %52, i1 false)
  %53 = getelementptr inbounds i8, ptr %47, i64 %52
  br label %54

54:                                               ; preds = %.peel.next, %51
  %.2 = phi ptr [ %53, %51 ], [ %47, %.peel.next ]
  %55 = add nuw i64 %.055, 1
  %56 = load i64, ptr %0, align 8, !tbaa !5
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %.peel.next, label %._crit_edge, !llvm.loop !19

58:                                               ; preds = %46, %._crit_edge, %15, %11, %8, %5
  %.140 = phi ptr [ null, %5 ], [ null, %8 ], [ %16, %15 ], [ null, %11 ], [ null, %46 ], [ %28, %._crit_edge ]
  ret ptr %.140
}

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { 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_string_array_s", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"rcutils_allocator_s", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!12 = !{!6, !10, i64 8}
!13 = !{!11, !10, i64 0}
!14 = !{!11, !10, i64 32}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !17, !20}
!20 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass