; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6/FirePdu.ll (ZNK3DIS7FirePdueqERKS0_)

; 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.DIS::FirePdu" = type <{ %"class.DIS::WarfareFamilyPdu", %"class.DIS::EntityID", %"class.DIS::EventID", i32, [4 x i8], %"class.DIS::Vector3Double", %"class.DIS::BurstDescriptor", %"class.DIS::Vector3Float", float, [4 x i8] }>
%"class.DIS::WarfareFamilyPdu" = type { %"class.DIS::Pdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EntityID" }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EventID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::Vector3Double" = type { ptr, double, double, double }
%"class.DIS::BurstDescriptor" = type { ptr, %"class.DIS::EntityType", i16, i16, i16, i16 }
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::Vector3Float" = type <{ ptr, float, float, float, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS7FirePdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(188) %0, ptr noundef nonnull align 8 dereferenceable(188) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 1, ptr %5, align 1, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = call noundef zeroext i1 @_ZNK3DIS16WarfareFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
  %9 = zext i1 %8 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  %10 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 1
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"class.DIS::FirePdu", ptr %11, i32 0, i32 1
  %13 = call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %10, ptr noundef nonnull align 8 dereferenceable(14) %12)
  br i1 %13, label %15, label %14

14:                                               ; preds = %2
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %15

15:                                               ; preds = %14, %2
  %16 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.DIS::FirePdu", ptr %17, i32 0, i32 2
  %19 = call noundef zeroext i1 @_ZNK3DIS7EventIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %16, ptr noundef nonnull align 8 dereferenceable(14) %18)
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %21

21:                                               ; preds = %20, %15
  %22 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.DIS::FirePdu", ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = icmp eq i32 %23, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %21
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %29

29:                                               ; preds = %28, %21
  %30 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.DIS::FirePdu", ptr %31, i32 0, i32 5
  %33 = call noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %32)
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %35

35:                                               ; preds = %34, %29
  %36 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 6
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.DIS::FirePdu", ptr %37, i32 0, i32 6
  %39 = call noundef zeroext i1 @_ZNK3DIS15BurstDescriptoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %38)
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %41

41:                                               ; preds = %40, %35
  %42 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 7
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.DIS::FirePdu", ptr %43, i32 0, i32 7
  %45 = call noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %42, ptr noundef nonnull align 8 dereferenceable(20) %44)
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %47

47:                                               ; preds = %46, %41
  %48 = getelementptr inbounds %"class.DIS::FirePdu", ptr %6, i32 0, i32 8
  %49 = load float, ptr %48, align 8, !tbaa !25
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.DIS::FirePdu", ptr %50, i32 0, i32 8
  %52 = load float, ptr %51, align 8, !tbaa !25
  %53 = fcmp oeq float %49, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %47
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %55

55:                                               ; preds = %54, %47
  %56 = load i8, ptr %5, align 1, !tbaa !9, !range !26, !noundef !27
  %57 = trunc i8 %56 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret i1 %57
}

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

declare noundef zeroext i1 @_ZNK3DIS16WarfareFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #2

declare noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) #2

declare noundef zeroext i1 @_ZNK3DIS7EventIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) #2

declare noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare noundef zeroext i1 @_ZNK3DIS15BurstDescriptoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !15, i64 88}
!12 = !{!"_ZTSN3DIS7FirePduE", !13, i64 0, !17, i64 56, !18, i64 72, !15, i64 88, !19, i64 96, !21, i64 128, !23, i64 160, !24, i64 184}
!13 = !{!"_ZTSN3DIS16WarfareFamilyPduE", !14, i64 0, !17, i64 24, !17, i64 40}
!14 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 12, !16, i64 16, !16, i64 18}
!15 = !{!"int", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN3DIS8EntityIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!18 = !{!"_ZTSN3DIS7EventIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!19 = !{!"_ZTSN3DIS13Vector3DoubleE", !20, i64 8, !20, i64 16, !20, i64 24}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN3DIS15BurstDescriptorE", !22, i64 8, !16, i64 24, !16, i64 26, !16, i64 28, !16, i64 30}
!22 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !16, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!23 = !{!"_ZTSN3DIS12Vector3FloatE", !24, i64 8, !24, i64 12, !24, i64 16}
!24 = !{!"float", !7, i64 0}
!25 = !{!12, !24, i64 184}
!26 = !{i8 0, i8 2}
!27 = !{}


; 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 @_ZNK3DIS7FirePdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(188) %0, ptr noundef nonnull align 8 dereferenceable(188) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef zeroext i1 @_ZNK3DIS16WarfareFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = getelementptr inbounds i8, ptr %1, i64 56
  %6 = tail call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %4, ptr noundef nonnull align 8 dereferenceable(14) %5)
  %spec.select = and i1 %3, %6
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = tail call noundef zeroext i1 @_ZNK3DIS7EventIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %7, ptr noundef nonnull align 8 dereferenceable(14) %8)
  %spec.select11 = and i1 %9, %spec.select
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 88
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i32 %11, %13
  %spec.select9 = and i1 %spec.select11, %14
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = getelementptr inbounds i8, ptr %1, i64 96
  %17 = tail call noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 128
  %19 = getelementptr inbounds i8, ptr %1, i64 128
  %20 = tail call noundef zeroext i1 @_ZNK3DIS15BurstDescriptoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
  %21 = and i1 %17, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 160
  %23 = getelementptr inbounds i8, ptr %1, i64 160
  %24 = tail call noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(20) %23)
  %25 = and i1 %24, %21
  %26 = getelementptr inbounds i8, ptr %0, i64 184
  %27 = load float, ptr %26, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %1, i64 184
  %29 = load float, ptr %28, align 8, !tbaa !21
  %30 = fcmp oeq float %27, %29
  %31 = and i1 %25, %30
  %.6 = select i1 %31, i1 %spec.select9, i1 false
  ret i1 %.6
}

declare noundef zeroext i1 @_ZNK3DIS16WarfareFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3DIS7EventIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(14)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3DIS15BurstDescriptoreqERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK3DIS12Vector3FloateqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1

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

!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, !11, i64 88}
!6 = !{!"_ZTSN3DIS7FirePduE", !7, i64 0, !13, i64 56, !14, i64 72, !11, i64 88, !15, i64 96, !17, i64 128, !19, i64 160, !20, i64 184}
!7 = !{!"_ZTSN3DIS16WarfareFamilyPduE", !8, i64 0, !13, i64 24, !13, i64 40}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS7EventIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!15 = !{!"_ZTSN3DIS13Vector3DoubleE", !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN3DIS15BurstDescriptorE", !18, i64 8, !12, i64 24, !12, i64 26, !12, i64 28, !12, i64 30}
!18 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!19 = !{!"_ZTSN3DIS12Vector3FloatE", !20, i64 8, !20, i64 12, !20, i64 16}
!20 = !{!"float", !9, i64 0}
!21 = !{!6, !20, i64 184}


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