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

; 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::SuppressionContext" = type <{ ptr, i32, [4 x i8], %"class.__sanitizer::InternalMmapVector", [32 x i8], i8, [7 x i8] }>
%"class.__sanitizer::InternalMmapVector" = type { %"class.__sanitizer::InternalMmapVectorNoCtor" }
%"class.__sanitizer::InternalMmapVectorNoCtor" = type { ptr, i64, i64 }
%"struct.__sanitizer::Suppression" = type { ptr, ptr, %"struct.__sanitizer::atomic_uint32_t", i64 }
%"struct.__sanitizer::atomic_uint32_t" = type { i32 }

; 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 zeroext i1 @_ZN11__sanitizer18SuppressionContext5MatchEPKcS2_PPNS_11SuppressionE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %13 = load ptr, ptr %6, align 8
  %14 = getelementptr inbounds %"class.__sanitizer::SuppressionContext", ptr %13, i32 0, i32 5
  store i8 0, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZNK11__sanitizer18SuppressionContext18HasSuppressionTypeEPKc(ptr noundef nonnull align 8 dereferenceable(73) %13, ptr noundef %15)
  br i1 %16, label %18, label %17

17:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  br label %54

18:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %19

19:                                               ; preds = %48, %18
  %20 = load i64, ptr %10, align 8, !tbaa !16
  %21 = getelementptr inbounds %"class.__sanitizer::SuppressionContext", ptr %13, i32 0, i32 3
  %22 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %23 = icmp ult i64 %20, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %19
  store i32 2, ptr %11, align 4
  br label %51

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %26 = getelementptr inbounds %"class.__sanitizer::SuppressionContext", ptr %13, i32 0, i32 3
  %27 = load i64, ptr %10, align 8, !tbaa !16
  %28 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %27)
  store ptr %28, ptr %12, align 8, !tbaa !5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.__sanitizer::Suppression", ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef i32 @_ZN11__sanitizer15internal_strcmpEPKcS1_(ptr noundef %31, ptr noundef %32)
  %34 = icmp eq i32 0, %33
  br i1 %34, label %35, label %44

35:                                               ; preds = %25
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.__sanitizer::Suppression", ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN11__sanitizer13TemplateMatchEPKcS1_(ptr noundef %38, ptr noundef %39)
  br i1 %40, label %41, label %44

41:                                               ; preds = %35
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %42, ptr %43, align 8, !tbaa !5
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %45

44:                                               ; preds = %35, %25
  store i32 0, ptr %11, align 4
  br label %45

45:                                               ; preds = %44, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %46 = load i32, ptr %11, align 4
  switch i32 %46, label %51 [
    i32 0, label %47
  ]

47:                                               ; preds = %45
  br label %48

48:                                               ; preds = %47
  %49 = load i64, ptr %10, align 8, !tbaa !16
  %50 = add i64 %49, 1
  store i64 %50, ptr %10, align 8, !tbaa !16
  br label %19, !llvm.loop !21

51:                                               ; preds = %45, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %52 = load i32, ptr %11, align 4
  switch i32 %52, label %56 [
    i32 2, label %53
    i32 1, label %54
  ]

53:                                               ; preds = %51
  store i1 false, ptr %5, align 1
  br label %54

54:                                               ; preds = %53, %51, %17
  %55 = load i1, ptr %5, align 1
  ret i1 %55

56:                                               ; preds = %51
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11__sanitizer18SuppressionContext18HasSuppressionTypeEPKc(ptr noundef nonnull align 8 dereferenceable(73), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare noundef i32 @_ZN11__sanitizer15internal_strcmpEPKcS1_(ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11__sanitizer13TemplateMatchEPKcS1_(ptr noundef, ptr noundef) #3

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 = { 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 #3 = { "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++ TBAA"}
!9 = !{!10, !15, i64 72}
!10 = !{!"_ZTSN11__sanitizer18SuppressionContextE", !6, i64 0, !11, i64 8, !12, i64 16, !7, i64 40, !15, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN11__sanitizer18InternalMmapVectorINS_11SuppressionEEE", !13, i64 0}
!13 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEE", !6, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN11__sanitizer11SuppressionE", !6, i64 0, !6, i64 8, !19, i64 16, !14, i64 24}
!19 = !{!"_ZTSN11__sanitizer15atomic_uint32_tE", !11, i64 0}
!20 = !{!18, !6, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11__sanitizer18SuppressionContext5MatchEPKcS2_PPNS_11SuppressionE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 0, ptr %5, align 8, !tbaa !5
  %6 = tail call noundef zeroext i1 @_ZNK11__sanitizer18SuppressionContext18HasSuppressionTypeEPKc(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef %2)
  br i1 %6, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = tail call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.not17.not = icmp eq i64 %8, 0
  br i1 %.not17.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %17
  %.01518 = phi i64 [ %18, %17 ], [ 0, %.preheader ]
  %9 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.01518)
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = tail call noundef i32 @_ZN11__sanitizer15internal_strcmpEPKcS1_(ptr noundef %10, ptr noundef %2)
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %17

13:                                               ; preds = %.lr.ph
  %14 = getelementptr inbounds i8, ptr %9, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !18
  %16 = tail call noundef zeroext i1 @_ZN11__sanitizer13TemplateMatchEPKcS1_(ptr noundef %15, ptr noundef %1)
  br i1 %16, label %.critedge, label %17

.critedge:                                        ; preds = %13
  store ptr %9, ptr %3, align 8, !tbaa !19
  br label %.loopexit

17:                                               ; preds = %13, %.lr.ph
  %18 = add nuw i64 %.01518, 1
  %19 = tail call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.not = icmp ult i64 %18, %19
  br i1 %.not, label %.lr.ph, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %17, %.preheader, %.critedge, %4
  %.3 = phi i1 [ false, %4 ], [ true, %.critedge ], [ false, %.preheader ], [ false, %17 ]
  ret i1 %.3
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11__sanitizer18SuppressionContext18HasSuppressionTypeEPKc(ptr noundef nonnull align 8 dereferenceable(73), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN11__sanitizer15internal_strcmpEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11__sanitizer13TemplateMatchEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #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 = { 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 = { "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" }

!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, !14, i64 72}
!6 = !{!"_ZTSN11__sanitizer18SuppressionContextE", !7, i64 0, !10, i64 8, !11, i64 16, !8, i64 40, !14, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN11__sanitizer18InternalMmapVectorINS_11SuppressionEEE", !12, i64 0}
!12 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_11SuppressionEEE", !7, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTSN11__sanitizer11SuppressionE", !7, i64 0, !7, i64 8, !17, i64 16, !13, i64 24}
!17 = !{!"_ZTSN11__sanitizer15atomic_uint32_tE", !10, i64 0}
!18 = !{!16, !7, i64 8}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass