; LLVM IR from Razakhel/RaZ :: extern/tracy/libbacktrace (elf)

; 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.tracy::phdr_data" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%"struct.tracy::backtrace_state" = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5tracy20backtrace_initializeEPNS_15backtrace_stateEPKciPFvPvS3_iES4_PPFiS1_mPFiS4_mmS3_iS3_ES6_S4_E(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.tracy::phdr_data", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store ptr @_ZN5tracyL11elf_nodebugEPNS_15backtrace_stateEmPFiPvmmPKciS4_EPFvS2_S4_iES2_, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = load i32, ptr %10, align 4, !tbaa !9
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = call noundef i32 @_ZN5tracyL7elf_addEPNS_15backtrace_stateEPKciPKhmmPNS_18elf_ppc64_opd_dataEPFvPvS3_iES8_PPFiS1_mPFiS8_mmS3_iS3_ESA_S8_EPiSG_PPNS_10dwarf_dataEiiS3_j(ptr noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef null, i64 noundef 0, i64 noundef 0, ptr noundef null, ptr noundef %25, ptr noundef %26, ptr noundef %17, ptr noundef %15, ptr noundef %16, ptr noundef null, i32 noundef 1, i32 noundef 0, ptr noundef null, i32 noundef 0)
  store i32 %27, ptr %14, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %6
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %111

31:                                               ; preds = %6
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 0
  store ptr %32, ptr %33, align 8, !tbaa !11
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 1
  store ptr %34, ptr %35, align 8, !tbaa !13
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 2
  store ptr %36, ptr %37, align 8, !tbaa !14
  %38 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 3
  store ptr %17, ptr %38, align 8, !tbaa !15
  %39 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 4
  store ptr %15, ptr %39, align 8, !tbaa !16
  %40 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 5
  store ptr %16, ptr %40, align 8, !tbaa !17
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 6
  store ptr %41, ptr %42, align 8, !tbaa !18
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %31
  %46 = load i32, ptr %10, align 4, !tbaa !9
  br label %48

47:                                               ; preds = %31
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi i32 [ %46, %45 ], [ -1, %47 ]
  %50 = getelementptr inbounds %"struct.tracy::phdr_data", ptr %18, i32 0, i32 7
  store i32 %49, ptr %50, align 8, !tbaa !19
  %51 = call noundef i32 @_ZN5tracyL34elf_iterate_phdr_and_add_new_filesEPNS_9phdr_dataE(ptr noundef %18)
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !20
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %72, label %56

56:                                               ; preds = %48
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %60, i32 0, i32 5
  store ptr @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_, ptr %61, align 8, !tbaa !22
  br label %71

62:                                               ; preds = %56
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %70

67:                                               ; preds = %62
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %68, i32 0, i32 5
  store ptr @_ZN5tracyL10elf_nosymsEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_, ptr %69, align 8, !tbaa !22
  br label %70

70:                                               ; preds = %67, %62
  br label %71

71:                                               ; preds = %70, %59
  br label %81

72:                                               ; preds = %48
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %79

75:                                               ; preds = %72
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %76, i32 0, i32 5
  store ptr @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_, ptr %20, align 8, !tbaa !5
  %78 = load i64, ptr %20, align 8
  store atomic i64 %78, ptr %77 release, align 8
  br label %80

79:                                               ; preds = %72
  call void @abort() #4
  unreachable

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80, %71
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !20
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %91, label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !23
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %89, ptr %90, align 8, !tbaa !5
  br label %97

91:                                               ; preds = %81
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %92, i32 0, i32 3
  %94 = load atomic i64, ptr %93 acquire, align 8
  store i64 %94, ptr %21, align 8
  %95 = load ptr, ptr %21, align 8, !tbaa !5
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %95, ptr %96, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %91, %86
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = icmp eq ptr %99, null
  br i1 %100, label %105, label %101

101:                                              ; preds = %97
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = icmp eq ptr %103, @_ZN5tracyL11elf_nodebugEPNS_15backtrace_stateEmPFiPvmmPKciS4_EPFvS2_S4_iES2_
  br i1 %104, label %105, label %108

105:                                              ; preds = %101, %97
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %106, ptr %107, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %105, %101
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.tracy::backtrace_state", ptr %109, i32 0, i32 10
  store ptr null, ptr %110, align 8, !tbaa !24
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %111

111:                                              ; preds = %108, %30
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %112 = load i32, ptr %7, align 4
  ret i32 %112
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN5tracyL34elf_iterate_phdr_and_add_new_filesEPNS_9phdr_dataE(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5tracyL10elf_nosymsEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @abort() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn 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 #3 = { nounwind }
attributes #4 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN5tracy9phdr_dataE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !10, i64 56}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTSN5tracy15backtrace_stateE", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !6, i64 64, !6, i64 72}
!22 = !{!21, !6, i64 40}
!23 = !{!21, !6, i64 24}
!24 = !{!21, !6, i64 72}


; 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.tracy::phdr_data" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN5tracy20backtrace_initializeEPNS_15backtrace_stateEPKciPFvPvS3_iES4_PPFiS1_mPFiS4_mmS3_iS3_ES6_S4_E(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #1 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.tracy::phdr_data", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store ptr @_ZN5tracyL11elf_nodebugEPNS_15backtrace_stateEmPFiPvmmPKciS4_EPFvS2_S4_iES2_, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #3
  %11 = call noundef i32 @_ZN5tracyL7elf_addEPNS_15backtrace_stateEPKciPKhmmPNS_18elf_ppc64_opd_dataEPFvPvS3_iES8_PPFiS1_mPFiS8_mmS3_iS3_ESA_S8_EPiSG_PPNS_10dwarf_dataEiiS3_j(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef null, i64 noundef 0, i64 noundef 0, ptr noundef null, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef null, i32 noundef 1, i32 noundef 0, ptr noundef null, i32 noundef 0)
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %47, label %12

12:                                               ; preds = %6
  store ptr %0, ptr %10, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %3, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %4, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %9, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %7, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %10, i64 40
  store ptr %8, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %10, i64 48
  store ptr %1, ptr %18, align 8, !tbaa !17
  %.inv = icmp sgt i32 %11, -1
  %19 = select i1 %.inv, i32 -1, i32 %2
  %20 = getelementptr inbounds i8, ptr %10, i64 56
  store i32 %19, ptr %20, align 8, !tbaa !18
  %21 = call noundef i32 @_ZN5tracyL34elf_iterate_phdr_and_add_new_filesEPNS_9phdr_dataE(ptr noundef nonnull %10)
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !19
  %.not30 = icmp eq i32 %23, 0
  %24 = load i32, ptr %7, align 4, !tbaa !21
  %.not31 = icmp eq i32 %24, 0
  br i1 %.not30, label %25, label %30

25:                                               ; preds = %12
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  br i1 %.not31, label %27, label %.sink.split

27:                                               ; preds = %25
  %28 = load ptr, ptr %26, align 8, !tbaa !22
  %29 = icmp eq ptr %28, null
  br i1 %29, label %.sink.split, label %32

30:                                               ; preds = %12
  br i1 %.not31, label %31, label %35

31:                                               ; preds = %30
  call void @abort() #4
  unreachable

.sink.split:                                      ; preds = %27, %25
  %_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_.sink = phi ptr [ @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_, %25 ], [ @_ZN5tracyL10elf_nosymsEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_, %27 ]
  store ptr %_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_.sink, ptr %26, align 8, !tbaa !22
  br label %32

32:                                               ; preds = %.sink.split, %27
  %33 = getelementptr inbounds i8, ptr %0, i64 24
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  br label %40

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  store atomic i64 ptrtoint (ptr @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_ to i64), ptr %36 release, align 8
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = load atomic i64, ptr %37 acquire, align 8
  %39 = inttoptr i64 %38 to ptr
  br label %40

40:                                               ; preds = %35, %32
  %storemerge = phi ptr [ %34, %32 ], [ %39, %35 ]
  store ptr %storemerge, ptr %5, align 8, !tbaa !5
  %41 = icmp eq ptr %storemerge, null
  %42 = icmp eq ptr %storemerge, @_ZN5tracyL11elf_nodebugEPNS_15backtrace_stateEmPFiPvmmPKciS4_EPFvS2_S4_iES2_
  %or.cond = or i1 %41, %42
  br i1 %or.cond, label %43, label %45

43:                                               ; preds = %40
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %44, ptr %5, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %40, %43
  %46 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr null, ptr %46, align 8, !tbaa !24
  br label %47

47:                                               ; preds = %6, %45
  %.0 = phi i32 [ 1, %45 ], [ 0, %6 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  ret i32 %.0
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5tracyL11elf_syminfoEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5tracyL10elf_nosymsEPNS_15backtrace_stateEmPFvPvmPKcmmEPFvS2_S4_iES2_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn 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 #3 = { nounwind }
attributes #4 = { noreturn 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++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN5tracy9phdr_dataE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !11, i64 56}
!19 = !{!20, !11, i64 8}
!20 = !{!"_ZTSN5tracy15backtrace_stateE", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !6, i64 64, !6, i64 72}
!21 = !{!11, !11, i64 0}
!22 = !{!20, !6, i64 40}
!23 = !{!20, !6, i64 24}
!24 = !{!20, !6, i64 72}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass