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

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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 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

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

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) #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 uwtable
define dso_local i32 @rcutils_string_map_reserve(ptr noundef %0, i64 noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.rcutils_allocator_s, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp eq ptr null, %11
  br i1 %12, label %13, label %16

13:                                               ; preds = %10
  br label %14

14:                                               ; preds = %13
  call void @rcutils_set_error_state(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 152)
  br label %15

15:                                               ; preds = %14
  store i32 11, ptr %3, align 4
  br label %162

16:                                               ; preds = %10
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp eq ptr null, %21
  br i1 %22, label %23, label %26

23:                                               ; preds = %18
  br label %24

24:                                               ; preds = %23
  call void @rcutils_set_error_state(ptr noundef @.str.6, ptr noundef @.str.1, i64 noundef 154)
  br label %25

25:                                               ; preds = %24
  store i32 31, ptr %3, align 4
  br label %162

26:                                               ; preds = %18
  br label %27

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #4
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %30, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %31, i64 40, i1 false), !tbaa.struct !13
  %32 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef %6)
  br i1 %32, label %37, label %33

33:                                               ; preds = %27
  br label %34

34:                                               ; preds = %33
  call void @rcutils_set_error_state(ptr noundef @.str.5, ptr noundef @.str.1, i64 noundef 157)
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  store i32 11, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

37:                                               ; preds = %27
  %38 = load i64, ptr %5, align 8, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %41, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !14
  %44 = icmp ult i64 %38, %43
  br i1 %44, label %45, label %53

45:                                               ; preds = %37
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %49, i32 0, i32 2
  %51 = load i64, ptr %50, align 8, !tbaa !14
  %52 = call i32 @rcutils_string_map_reserve(ptr noundef %46, i64 noundef %51)
  store i32 %52, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

53:                                               ; preds = %37
  %54 = load i64, ptr %5, align 8, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !17
  %60 = icmp eq i64 %54, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %53
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

62:                                               ; preds = %53
  %63 = load i64, ptr %5, align 8, !tbaa !9
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %79

65:                                               ; preds = %62
  %66 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %6, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %6, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !20
  call void %67(ptr noundef %72, ptr noundef %74)
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %77, i32 0, i32 0
  store ptr null, ptr %78, align 8, !tbaa !19
  br label %154

79:                                               ; preds = %62
  %80 = load i64, ptr %5, align 8, !tbaa !9
  %81 = icmp ugt i64 %80, 1152921504606846975
  br i1 %81, label %82, label %86

82:                                               ; preds = %79
  br label %83

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

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  store i32 10, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %87 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %6, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !21
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  %94 = load i64, ptr %5, align 8, !tbaa !9
  %95 = mul i64 %94, 16
  %96 = getelementptr inbounds %struct.rcutils_allocator_s, ptr %6, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = call ptr %88(ptr noundef %93, i64 noundef %95, ptr noundef %97)
  store ptr %98, ptr %8, align 8, !tbaa !5
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = icmp eq ptr null, %99
  br i1 %100, label %101, label %105

101:                                              ; preds = %86
  br label %102

102:                                              ; preds = %101
  call void @rcutils_set_error_state(ptr noundef @.str.10, ptr noundef @.str.1, i64 noundef 187)
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  store i32 10, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %151

105:                                              ; preds = %86
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %109, i32 0, i32 0
  store ptr %106, ptr %110, align 8, !tbaa !19
  %111 = load i64, ptr %5, align 8, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  %115 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %114, i32 0, i32 1
  %116 = load i64, ptr %115, align 8, !tbaa !17
  %117 = icmp ugt i64 %111, %116
  br i1 %117, label %118, label %150

118:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %121, i32 0, i32 1
  %123 = load i64, ptr %122, align 8, !tbaa !17
  store i64 %123, ptr %9, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %146, %118
  %125 = load i64, ptr %9, align 8, !tbaa !9
  %126 = load i64, ptr %5, align 8, !tbaa !9
  %127 = icmp ult i64 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 16, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %149

129:                                              ; preds = %124
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  %135 = load i64, ptr %9, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.key_value_pair, ptr %134, i64 %135
  %137 = getelementptr inbounds %struct.key_value_pair, ptr %136, i32 0, i32 0
  store ptr null, ptr %137, align 8, !tbaa !22
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !19
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.key_value_pair, ptr %142, i64 %143
  %145 = getelementptr inbounds %struct.key_value_pair, ptr %144, i32 0, i32 1
  store ptr null, ptr %145, align 8, !tbaa !24
  br label %146

146:                                              ; preds = %129
  %147 = load i64, ptr %9, align 8, !tbaa !9
  %148 = add i64 %147, 1
  store i64 %148, ptr %9, align 8, !tbaa !9
  br label %124, !llvm.loop !25

149:                                              ; preds = %128
  br label %150

150:                                              ; preds = %149, %105
  store i32 0, ptr %7, align 4
  br label %151

151:                                              ; preds = %150, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %152 = load i32, ptr %7, align 4
  switch i32 %152, label %161 [
    i32 0, label %153
  ]

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153, %65
  br label %155

155:                                              ; preds = %154
  %156 = load i64, ptr %5, align 8, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.rcutils_string_map_s, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = getelementptr inbounds %struct.rcutils_string_map_impl_s, ptr %159, i32 0, i32 1
  store i64 %156, ptr %160, align 8, !tbaa !17
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %161

161:                                              ; preds = %155, %151, %85, %61, %45, %36
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #4
  br label %162

162:                                              ; preds = %161, %25, %15
  %163 = load i32, ptr %3, align 4
  ret i32 %163
}

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"rcutils_string_map_s", !6, i64 0}
!13 = !{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}
!14 = !{!15, !10, i64 16}
!15 = !{!"rcutils_string_map_impl_s", !6, i64 0, !10, i64 8, !10, i64 16, !16, i64 24}
!16 = !{!"rcutils_allocator_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!15, !10, i64 8}
!18 = !{!16, !6, i64 8}
!19 = !{!15, !6, i64 0}
!20 = !{!16, !6, i64 32}
!21 = !{!16, !6, i64 16}
!22 = !{!23, !6, i64 0}
!23 = !{!"key_value_pair", !6, i64 0, !6, i64 8}
!24 = !{!23, !6, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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 [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 32) i32 @rcutils_string_map_reserve(ptr noundef %0, i64 noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.rcutils_allocator_s, align 8
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %2
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 152) #5
  br label %56

6:                                                ; preds = %2
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %6
  tail call void @rcutils_set_error_state(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i64 noundef 154) #5
  br label %56

10:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  %11 = getelementptr inbounds i8, ptr %7, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %11, i64 40, i1 false), !tbaa.struct !10
  %12 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef nonnull %3) #5
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i64 noundef 157) #5
  br label %55

14:                                               ; preds = %10
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load i64, ptr %16, align 8, !tbaa !12
  %18 = icmp ugt i64 %17, %1
  br i1 %18, label %19, label %21

19:                                               ; preds = %14
  %20 = call i32 @rcutils_string_map_reserve(ptr noundef nonnull %0, i64 noundef %17)
  br label %55

21:                                               ; preds = %14
  %22 = getelementptr inbounds i8, ptr %15, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %24 = icmp eq i64 %23, %1
  br i1 %24, label %55, label %25

25:                                               ; preds = %21
  %26 = icmp eq i64 %1, 0
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = load ptr, ptr %15, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %3, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  call void %29(ptr noundef %30, ptr noundef %32) #5
  %33 = load ptr, ptr %0, align 8, !tbaa !5
  store ptr null, ptr %33, align 8, !tbaa !18
  br label %.thread

34:                                               ; preds = %25
  %35 = icmp ugt i64 %1, 1152921504606846975
  br i1 %35, label %36, label %37

36:                                               ; preds = %34
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i64 noundef 179) #5
  br label %55

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %15, align 8, !tbaa !18
  %41 = shl nuw i64 %1, 4
  %42 = getelementptr inbounds i8, ptr %3, i64 32
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = call ptr %39(ptr noundef %40, i64 noundef %41, ptr noundef %43) #5
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %52, label %45

45:                                               ; preds = %37
  %46 = load ptr, ptr %0, align 8, !tbaa !5
  store ptr %44, ptr %46, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !16
  %49 = icmp ult i64 %48, %1
  br i1 %49, label %.preheader.preheader, label %.thread

.preheader.preheader:                             ; preds = %45
  %50 = shl nuw i64 %48, 4
  %scevgep = getelementptr i8, ptr %44, i64 %50
  %51 = sub i64 %41, %50
  call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 0, i64 %51, i1 false), !tbaa !11
  %.pre = load ptr, ptr %0, align 8, !tbaa !5
  br label %.thread

52:                                               ; preds = %37
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i64 noundef 187) #5
  br label %55

.thread:                                          ; preds = %.preheader.preheader, %45, %27
  %53 = phi ptr [ %.pre, %.preheader.preheader ], [ %46, %45 ], [ %33, %27 ]
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store i64 %1, ptr %54, align 8, !tbaa !16
  br label %55

55:                                               ; preds = %52, %21, %.thread, %36, %19, %13
  %.1 = phi i32 [ %20, %19 ], [ 0, %.thread ], [ 10, %36 ], [ 10, %52 ], [ 11, %13 ], [ 0, %21 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  br label %56

56:                                               ; preds = %55, %9, %5
  %.2 = phi i32 [ 11, %5 ], [ 31, %9 ], [ %.1, %55 ]
  ret i32 %.2
}

; Function Attrs: mustprogress 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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass