; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis7 (BeamAntennaPattern)

; 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::BeamAntennaPattern" = type { ptr, %"class.DIS::EulerAngles", float, float, float, i8, i16, float, float, float, i32 }
%"class.DIS::EulerAngles" = type <{ ptr, float, float, float, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS18BeamAntennaPatterneqERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %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 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 1
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %8, i32 0, i32 1
  %10 = call noundef zeroext i1 @_ZNK3DIS11EulerAngleseqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 8 dereferenceable(20) %9)
  br i1 %10, label %12, label %11

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

12:                                               ; preds = %11, %2
  %13 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 2
  %14 = load float, ptr %13, align 8, !tbaa !11
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %15, i32 0, i32 2
  %17 = load float, ptr %16, align 8, !tbaa !11
  %18 = fcmp oeq float %14, %17
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %19, %12
  %21 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 3
  %22 = load float, ptr %21, align 4, !tbaa !17
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %23, i32 0, i32 3
  %25 = load float, ptr %24, align 4, !tbaa !17
  %26 = fcmp oeq float %22, %25
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %27, %20
  %29 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 4
  %30 = load float, ptr %29, align 8, !tbaa !18
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %31, i32 0, i32 4
  %33 = load float, ptr %32, align 8, !tbaa !18
  %34 = fcmp oeq float %30, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %35, %28
  %37 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 5
  %38 = load i8, ptr %37, align 4, !tbaa !19
  %39 = zext i8 %38 to i32
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %40, i32 0, i32 5
  %42 = load i8, ptr %41, align 4, !tbaa !19
  %43 = zext i8 %42 to i32
  %44 = icmp eq i32 %39, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %45, %36
  %47 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 6
  %48 = load i16, ptr %47, align 2, !tbaa !20
  %49 = zext i16 %48 to i32
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %50, i32 0, i32 6
  %52 = load i16, ptr %51, align 2, !tbaa !20
  %53 = zext i16 %52 to i32
  %54 = icmp eq i32 %49, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %55, %46
  %57 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 7
  %58 = load float, ptr %57, align 8, !tbaa !21
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %59, i32 0, i32 7
  %61 = load float, ptr %60, align 8, !tbaa !21
  %62 = fcmp oeq float %58, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %56
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %64

64:                                               ; preds = %63, %56
  %65 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 8
  %66 = load float, ptr %65, align 4, !tbaa !22
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %67, i32 0, i32 8
  %69 = load float, ptr %68, align 4, !tbaa !22
  %70 = fcmp oeq float %66, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %64
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %72

72:                                               ; preds = %71, %64
  %73 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 9
  %74 = load float, ptr %73, align 8, !tbaa !23
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %75, i32 0, i32 9
  %77 = load float, ptr %76, align 8, !tbaa !23
  %78 = fcmp oeq float %74, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %72
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %80

80:                                               ; preds = %79, %72
  %81 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %6, i32 0, i32 10
  %82 = load i32, ptr %81, align 4, !tbaa !24
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.DIS::BeamAntennaPattern", ptr %83, i32 0, i32 10
  %85 = load i32, ptr %84, align 4, !tbaa !24
  %86 = icmp eq i32 %82, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %80
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %88

88:                                               ; preds = %87, %80
  %89 = load i8, ptr %5, align 1, !tbaa !9, !range !25, !noundef !26
  %90 = trunc i8 %89 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret i1 %90
}

; 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 @_ZNK3DIS11EulerAngleseqERKS0_(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, !14, i64 32}
!12 = !{!"_ZTSN3DIS18BeamAntennaPatternE", !13, i64 8, !14, i64 32, !14, i64 36, !14, i64 40, !7, i64 44, !15, i64 46, !14, i64 48, !14, i64 52, !14, i64 56, !16, i64 60}
!13 = !{!"_ZTSN3DIS11EulerAnglesE", !14, i64 8, !14, i64 12, !14, i64 16}
!14 = !{!"float", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!12, !14, i64 36}
!18 = !{!12, !14, i64 40}
!19 = !{!12, !7, i64 44}
!20 = !{!12, !15, i64 46}
!21 = !{!12, !14, i64 48}
!22 = !{!12, !14, i64 52}
!23 = !{!12, !14, i64 56}
!24 = !{!12, !16, i64 60}
!25 = !{i8 0, i8 2}
!26 = !{}


; 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 @_ZNK3DIS18BeamAntennaPatterneqERKS0_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = tail call noundef zeroext i1 @_ZNK3DIS11EulerAngleseqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(20) %4)
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  %7 = load float, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 32
  %9 = load float, ptr %8, align 8, !tbaa !5
  %10 = fcmp oeq float %7, %9
  %.1 = and i1 %5, %10
  %11 = getelementptr inbounds i8, ptr %0, i64 36
  %12 = load float, ptr %11, align 4, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %1, i64 36
  %14 = load float, ptr %13, align 4, !tbaa !13
  %15 = fcmp oeq float %12, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %2
  br label %17

17:                                               ; preds = %16, %2
  %.2 = phi i1 [ %.1, %2 ], [ false, %16 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load float, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %1, i64 40
  %21 = load float, ptr %20, align 8, !tbaa !14
  %22 = fcmp oeq float %19, %21
  %23 = getelementptr inbounds i8, ptr %0, i64 44
  %24 = load i8, ptr %23, align 4, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %1, i64 44
  %26 = load i8, ptr %25, align 4, !tbaa !15
  %27 = icmp eq i8 %24, %26
  %28 = getelementptr inbounds i8, ptr %0, i64 46
  %29 = load i16, ptr %28, align 2, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %1, i64 46
  %31 = load i16, ptr %30, align 2, !tbaa !16
  %32 = icmp eq i16 %29, %31
  %33 = select i1 %32, i1 %27, i1 false
  %34 = select i1 %33, i1 %22, i1 false
  %spec.select = select i1 %34, i1 %.2, i1 false
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  %36 = load float, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %1, i64 48
  %38 = load float, ptr %37, align 8, !tbaa !17
  %39 = fcmp oeq float %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %17
  br label %41

41:                                               ; preds = %40, %17
  %.6 = phi i1 [ %spec.select, %17 ], [ false, %40 ]
  %42 = getelementptr inbounds i8, ptr %0, i64 52
  %43 = load float, ptr %42, align 4, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %1, i64 52
  %45 = load float, ptr %44, align 4, !tbaa !18
  %46 = fcmp oeq float %43, %45
  %.7 = select i1 %46, i1 %.6, i1 false
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = load float, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %1, i64 56
  %50 = load float, ptr %49, align 8, !tbaa !19
  %51 = fcmp oeq float %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %41
  br label %53

53:                                               ; preds = %52, %41
  %.8 = phi i1 [ %.7, %41 ], [ false, %52 ]
  %54 = getelementptr inbounds i8, ptr %0, i64 60
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %1, i64 60
  %57 = load i32, ptr %56, align 4, !tbaa !20
  %58 = icmp eq i32 %55, %57
  %spec.select11 = select i1 %58, i1 %.8, i1 false
  ret i1 %spec.select11
}

declare noundef zeroext i1 @_ZNK3DIS11EulerAngleseqERKS0_(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, !8, i64 32}
!6 = !{!"_ZTSN3DIS18BeamAntennaPatternE", !7, i64 8, !8, i64 32, !8, i64 36, !8, i64 40, !9, i64 44, !11, i64 46, !8, i64 48, !8, i64 52, !8, i64 56, !12, i64 60}
!7 = !{!"_ZTSN3DIS11EulerAnglesE", !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!6, !8, i64 36}
!14 = !{!6, !8, i64 40}
!15 = !{!6, !9, i64 44}
!16 = !{!6, !11, i64 46}
!17 = !{!6, !8, i64 48}
!18 = !{!6, !8, i64 52}
!19 = !{!6, !8, i64 56}
!20 = !{!6, !12, i64 60}


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