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

; 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.__sanitizer::SymbolizerProcess" = type <{ ptr, ptr, i32, i32, [16384 x i8], i64, i8, i8, i8, [5 x i8] }>

@.str.1 = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTVN11__sanitizer17SymbolizerProcessE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

; Function Attrs: noreturn
declare void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer17SymbolizerProcessC2EPKcb(ptr noundef nonnull align 8 dereferenceable(16419) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = zext i1 %2 to i8
  store i8 %11, ptr %6, align 1, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN11__sanitizer17SymbolizerProcessE, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %14, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 2
  store i32 -1, ptr %15, align 8, !tbaa !17
  %16 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 3
  store i32 -1, ptr %16, align 4, !tbaa !18
  %17 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 5
  store i64 0, ptr %17, align 8, !tbaa !19
  %18 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 6
  store i8 0, ptr %18, align 8, !tbaa !20
  %19 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 7
  store i8 0, ptr %19, align 1, !tbaa !21
  %20 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 8
  %21 = load i8, ptr %6, align 1, !tbaa !9, !range !22, !noundef !23
  %22 = trunc i8 %21 to i1
  %23 = zext i1 %22 to i8
  store i8 %23, ptr %20, align 2, !tbaa !24
  br label %24

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %25 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = ptrtoint ptr %26 to i64
  store i64 %27, ptr %7, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !25
  %28 = load i64, ptr %7, align 8, !tbaa !25
  %29 = load i64, ptr %8, align 8, !tbaa !25
  %30 = icmp ne i64 %28, %29
  %31 = xor i1 %30, true
  %32 = xor i1 %31, true
  %33 = xor i1 %32, true
  %34 = zext i1 %33 to i64
  %35 = call i64 @llvm.expect.i64(i64 %34, i64 0)
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %24
  %38 = load i64, ptr %7, align 8, !tbaa !25
  %39 = load i64, ptr %8, align 8, !tbaa !25
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.1, i32 noundef 358, ptr noundef @.str.11, i64 noundef %38, i64 noundef %39) #5
  unreachable

40:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %43 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %12, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %44, i64 0
  %46 = load i8, ptr %45, align 1, !tbaa !27
  %47 = sext i8 %46 to i64
  store i64 %47, ptr %9, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !25
  %48 = load i64, ptr %9, align 8, !tbaa !25
  %49 = load i64, ptr %10, align 8, !tbaa !25
  %50 = icmp ne i64 %48, %49
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %42
  %58 = load i64, ptr %9, align 8, !tbaa !25
  %59 = load i64, ptr %10, align 8, !tbaa !25
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.1, i32 noundef 359, ptr noundef @.str.12, i64 noundef %58, i64 noundef %59) #5
  unreachable

60:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %61

61:                                               ; preds = %60
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 = { nounwind }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN11__sanitizer17SymbolizerProcessE", !6, i64 8, !15, i64 16, !15, i64 20, !7, i64 24, !16, i64 16408, !10, i64 16416, !10, i64 16417, !10, i64 16418}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !15, i64 16}
!18 = !{!14, !15, i64 20}
!19 = !{!14, !16, i64 16408}
!20 = !{!14, !10, i64 16416}
!21 = !{!14, !10, i64 16417}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!14, !10, i64 16418}
!25 = !{!26, !26, i64 0}
!26 = !{!"long long", !7, i64 0}
!27 = !{!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"

@.str.1 = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTVN11__sanitizer17SymbolizerProcessE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer17SymbolizerProcessC2EPKcb(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(16419) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 {
  %4 = zext i1 %2 to i8
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN11__sanitizer17SymbolizerProcessE, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %5, align 8, !tbaa !8
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 -1, ptr %6, align 8, !tbaa !15
  %7 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 -1, ptr %7, align 4, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 16408
  store i64 0, ptr %8, align 8, !tbaa !17
  %9 = getelementptr inbounds i8, ptr %0, i64 16416
  store i8 0, ptr %9, align 8, !tbaa !18
  %10 = getelementptr inbounds i8, ptr %0, i64 16417
  store i8 0, ptr %10, align 1, !tbaa !19
  %11 = getelementptr inbounds i8, ptr %0, i64 16418
  store i8 %4, ptr %11, align 2, !tbaa !20
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %12, label %13, !prof !21

12:                                               ; preds = %3
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.1, i32 noundef 358, ptr noundef nonnull @.str.11, i64 noundef 0, i64 noundef 0) #2
  unreachable

13:                                               ; preds = %3
  %14 = load i8, ptr %1, align 1, !tbaa !22
  %.not10 = icmp eq i8 %14, 0
  br i1 %.not10, label %15, label %16, !prof !21

15:                                               ; preds = %13
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.1, i32 noundef 359, ptr noundef nonnull @.str.12, i64 noundef 0, i64 noundef 0) #2
  unreachable

16:                                               ; preds = %13
  ret void
}

attributes #0 = { 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 #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 }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN11__sanitizer17SymbolizerProcessE", !10, i64 8, !12, i64 16, !12, i64 20, !11, i64 24, !13, i64 16408, !14, i64 16416, !14, i64 16417, !14, i64 16418}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"int", !11, i64 0}
!13 = !{!"long", !11, i64 0}
!14 = !{!"bool", !11, i64 0}
!15 = !{!9, !12, i64 16}
!16 = !{!9, !12, i64 20}
!17 = !{!9, !13, i64 16408}
!18 = !{!9, !14, i64 16416}
!19 = !{!9, !14, i64 16417}
!20 = !{!9, !14, i64 16418}
!21 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!22 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass