; LLVM IR from maliput/maliput :: src/maliput/utility (generate_obj)

; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::utility::Material" = type { %"class.std::__cxx11::basic_string", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", double, double }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.std::allocator.0" = type { i8 }

@_ZN7maliput7utility12_GLOBAL__N_113kBlandAsphaltB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_19kLaneHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_112kMarkerPaintB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_112kHBoundsHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_116kBranchPointGlowB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_119kGrayedBlandAsphaltB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_115kGrayedLaneHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_118kGrayedMarkerPaintB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_19kSidewalkB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.62 = external hidden unnamed_addr constant [31 x i8], align 1
@__func__._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [85 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::utility::Material") align 8 %0, i32 noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  %9 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %9, label %28 [
    i32 0, label %10
    i32 1, label %12
    i32 2, label %14
    i32 3, label %16
    i32 4, label %18
    i32 5, label %20
    i32 6, label %22
    i32 7, label %24
    i32 8, label %26
  ]

10:                                               ; preds = %2
  %11 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_113kBlandAsphaltB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %11)
  br label %43

12:                                               ; preds = %2
  %13 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_19kLaneHazeB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %13)
  br label %43

14:                                               ; preds = %2
  %15 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_112kMarkerPaintB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %15)
  br label %43

16:                                               ; preds = %2
  %17 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_112kHBoundsHazeB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %17)
  br label %43

18:                                               ; preds = %2
  %19 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_116kBranchPointGlowB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %19)
  br label %43

20:                                               ; preds = %2
  %21 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_119kGrayedBlandAsphaltB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %21)
  br label %43

22:                                               ; preds = %2
  %23 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_115kGrayedLaneHazeB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %23)
  br label %43

24:                                               ; preds = %2
  %25 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_118kGrayedMarkerPaintB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %25)
  br label %43

26:                                               ; preds = %2
  %27 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) @_ZN7maliput7utility12_GLOBAL__N_19kSidewalkB5cxx11E)
  call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %27)
  br label %43

28:                                               ; preds = %2
  br label %29

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.62, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %30 unwind label %33

30:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  %31 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %31, ptr noundef @__func__._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE, ptr noundef @.str.63, i32 noundef 781) #6
          to label %32 unwind label %37

32:                                               ; preds = %30
  unreachable

33:                                               ; preds = %29
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %7, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %41

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %41

41:                                               ; preds = %37, %33
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  br label %44

42:                                               ; No predecessors!
  unreachable

43:                                               ; preds = %26, %24, %22, %20, %18, %16, %14, %12, %10
  ret void

44:                                               ; preds = %41
  %45 = load ptr, ptr %7, align 8
  %46 = load i32, ptr %8, align 4
  %47 = insertvalue { ptr, i32 } poison, ptr %45, 0
  %48 = insertvalue { ptr, i32 } %47, i32 %46, 1
  resume { ptr, i32 } %48
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress 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 #3 = { inlinehint mustprogress 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 = { noreturn "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 }
attributes #6 = { noreturn }

!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 = !{!"_ZTSN7maliput7utility12MaterialTypeE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::utility::Material" = type { %"class.std::__cxx11::basic_string", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", double, double }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.std::allocator.0" = type { i8 }

@_ZN7maliput7utility12_GLOBAL__N_113kBlandAsphaltB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_19kLaneHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_112kMarkerPaintB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_112kHBoundsHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_116kBranchPointGlowB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_119kGrayedBlandAsphaltB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_115kGrayedLaneHazeB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_118kGrayedMarkerPaintB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZN7maliput7utility12_GLOBAL__N_19kSidewalkB5cxx11E = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.62 = external hidden unnamed_addr constant [31 x i8], align 1
@__func__._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [85 x i8], align 1
@switch.table._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE = private unnamed_addr constant [9 x ptr] [ptr @_ZN7maliput7utility12_GLOBAL__N_113kBlandAsphaltB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_19kLaneHazeB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_112kMarkerPaintB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_112kHBoundsHazeB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_116kBranchPointGlowB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_119kGrayedBlandAsphaltB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_115kGrayedLaneHazeB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_118kGrayedMarkerPaintB5cxx11E, ptr @_ZN7maliput7utility12_GLOBAL__N_19kSidewalkB5cxx11E], align 8

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE(ptr dead_on_unwind noalias writable sret(%"struct.maliput::utility::Material") align 8 %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = icmp ult i32 %1, 9
  br i1 %5, label %switch.lookup, label %6

6:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.62, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %7 unwind label %10

7:                                                ; preds = %6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  %8 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %8, ptr noundef nonnull @__func__._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE, ptr noundef nonnull @.str.63, i32 noundef 781) #6
          to label %9 unwind label %12

9:                                                ; preds = %7
  unreachable

10:                                               ; preds = %6
  %11 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %14

12:                                               ; preds = %7
  %13 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %14

14:                                               ; preds = %12, %10
  %.pn = phi { ptr, i32 } [ %13, %12 ], [ %11, %10 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn

switch.lookup:                                    ; preds = %2
  %15 = zext nneg i32 %1 to i64
  %switch.gep = getelementptr inbounds [9 x ptr], ptr @switch.table._ZN7maliput7utility19GetMaterialFromMeshENS0_12MaterialTypeE, i64 0, i64 %15
  %switch.load = load ptr, ptr %switch.gep, align 8
  %16 = tail call noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %switch.load)
  tail call void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %16)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN7maliput7utility17GetMaterialByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7maliput7utility8MaterialC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #3 align 2

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress 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 #3 = { inlinehint mustprogress 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 = { noreturn "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 }
attributes #6 = { noreturn }

!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)"}


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