; LLVM IR from AngoraFuzzer/Angora :: llvm_mode/dfsan_rt/sanitizer_common (sanitizer_symbolizer)

; 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.__sanitizer::IntrusiveList" = type { i64, ptr, ptr }
%"class.__sanitizer::Symbolizer" = type { %"class.__sanitizer::Symbolizer::ModuleNameOwner", %"class.__sanitizer::ListOfModules", i8, %"class.__sanitizer::BlockingMutex", %"struct.__sanitizer::IntrusiveList", ptr, ptr }
%"class.__sanitizer::Symbolizer::ModuleNameOwner" = type { %"class.__sanitizer::InternalMmapVector", ptr, ptr }
%"class.__sanitizer::InternalMmapVector" = type { %"class.__sanitizer::InternalMmapVectorNoCtor" }
%"class.__sanitizer::InternalMmapVectorNoCtor" = type { ptr, i64, i64 }
%"class.__sanitizer::ListOfModules" = type { %"class.__sanitizer::InternalMmapVector.0" }
%"class.__sanitizer::InternalMmapVector.0" = type { %"class.__sanitizer::InternalMmapVectorNoCtor.1" }
%"class.__sanitizer::InternalMmapVectorNoCtor.1" = type { ptr, i64, i64 }
%"class.__sanitizer::BlockingMutex" = type { [10 x i64], i64 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer10SymbolizerC2ENS_13IntrusiveListINS_14SymbolizerToolEEE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef byval(%"struct.__sanitizer::IntrusiveList") align 8 %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 0
  %8 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 3
  call void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerC2EPNS_13BlockingMutexE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %8)
  %9 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 1
  invoke void @_ZN11__sanitizer13ListOfModulesC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %10 unwind label %17

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 2
  store i8 0, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 3
  invoke void @_ZN11__sanitizer13BlockingMutexC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %12)
          to label %13 unwind label %21

13:                                               ; preds = %10
  %14 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %1, i64 24, i1 false), !tbaa.struct !21
  %15 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 5
  store ptr null, ptr %15, align 8, !tbaa !23
  %16 = getelementptr inbounds %"class.__sanitizer::Symbolizer", ptr %6, i32 0, i32 6
  store ptr null, ptr %16, align 8, !tbaa !24
  ret void

17:                                               ; preds = %2
  %18 = landingpad { ptr, i32 }
          cleanup
  %19 = extractvalue { ptr, i32 } %18, 0
  store ptr %19, ptr %4, align 8
  %20 = extractvalue { ptr, i32 } %18, 1
  store i32 %20, ptr %5, align 4
  br label %25

21:                                               ; preds = %10
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %4, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %5, align 4
  call void @_ZN11__sanitizer13ListOfModulesD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %25

25:                                               ; preds = %21, %17
  call void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br label %26

26:                                               ; preds = %25
  %27 = load ptr, ptr %4, align 8
  %28 = load i32, ptr %5, align 4
  %29 = insertvalue { ptr, i32 } poison, ptr %27, 0
  %30 = insertvalue { ptr, i32 } %29, i32 %28, 1
  resume { ptr, i32 } %30
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerC2EPNS_13BlockingMutexE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer13ListOfModulesC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11__sanitizer13BlockingMutexC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer13ListOfModulesD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

attributes #0 = { 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 #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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 64}
!10 = !{!"_ZTSN11__sanitizer10SymbolizerE", !11, i64 0, !15, i64 40, !18, i64 64, !19, i64 72, !20, i64 160, !6, i64 184, !6, i64 192}
!11 = !{!"_ZTSN11__sanitizer10Symbolizer15ModuleNameOwnerE", !12, i64 0, !6, i64 24, !6, i64 32}
!12 = !{!"_ZTSN11__sanitizer18InternalMmapVectorIPKcEE", !13, i64 0}
!13 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorIPKcEE", !6, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN11__sanitizer13ListOfModulesE", !16, i64 0}
!16 = !{!"_ZTSN11__sanitizer18InternalMmapVectorINS_12LoadedModuleEEE", !17, i64 0}
!17 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12LoadedModuleEEE", !6, i64 0, !14, i64 8, !14, i64 16}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN11__sanitizer13BlockingMutexE", !7, i64 0, !14, i64 80}
!20 = !{!"_ZTSN11__sanitizer13IntrusiveListINS_14SymbolizerToolEEE", !14, i64 0, !6, i64 8, !6, i64 16}
!21 = !{i64 0, i64 8, !22, i64 8, i64 8, !5, i64 16, i64 8, !5}
!22 = !{!14, !14, i64 0}
!23 = !{!10, !6, i64 184}
!24 = !{!10, !6, i64 192}


; 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.__sanitizer::IntrusiveList" = type { i64, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer10SymbolizerC2ENS_13IntrusiveListINS_14SymbolizerToolEEE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr nocapture noundef readonly byval(%"struct.__sanitizer::IntrusiveList") align 8 %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerC2EPNS_13BlockingMutexE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN11__sanitizer13ListOfModulesC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %5 unwind label %10

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 0, ptr %6, align 8, !tbaa !5
  invoke void @_ZN11__sanitizer13BlockingMutexC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3)
          to label %7 unwind label %12

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false), !tbaa.struct !20
  %9 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  ret void

10:                                               ; preds = %2
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %14

12:                                               ; preds = %5
  %13 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN11__sanitizer13ListOfModulesD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %14

14:                                               ; preds = %12, %10
  %.pn = phi { ptr, i32 } [ %13, %12 ], [ %11, %10 ]
  tail call void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerC2EPNS_13BlockingMutexE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer13ListOfModulesC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11__sanitizer13BlockingMutexC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer13ListOfModulesD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer10Symbolizer15ModuleNameOwnerD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !17, i64 64}
!6 = !{!"_ZTSN11__sanitizer10SymbolizerE", !7, i64 0, !14, i64 40, !17, i64 64, !18, i64 72, !19, i64 160, !10, i64 184, !10, i64 192}
!7 = !{!"_ZTSN11__sanitizer10Symbolizer15ModuleNameOwnerE", !8, i64 0, !10, i64 24, !10, i64 32}
!8 = !{!"_ZTSN11__sanitizer18InternalMmapVectorIPKcEE", !9, i64 0}
!9 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorIPKcEE", !10, i64 0, !13, i64 8, !13, i64 16}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"_ZTSN11__sanitizer13ListOfModulesE", !15, i64 0}
!15 = !{!"_ZTSN11__sanitizer18InternalMmapVectorINS_12LoadedModuleEEE", !16, i64 0}
!16 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12LoadedModuleEEE", !10, i64 0, !13, i64 8, !13, i64 16}
!17 = !{!"bool", !11, i64 0}
!18 = !{!"_ZTSN11__sanitizer13BlockingMutexE", !11, i64 0, !13, i64 80}
!19 = !{!"_ZTSN11__sanitizer13IntrusiveListINS_14SymbolizerToolEEE", !13, i64 0, !10, i64 8, !10, i64 16}
!20 = !{i64 0, i64 8, !21, i64 8, i64 8, !22, i64 16, i64 8, !22}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass