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

; 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::MinefieldStatePdu" = type { %"class.DIS::MinefieldFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", i16, i8, i8, %"class.DIS::EntityType", i16, %"class.DIS::Vector3Double", %"class.DIS::Orientation", i16, i16, %"class.std::vector", %"class.std::vector.0" }
%"class.DIS::MinefieldFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"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::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.DIS::Vector3Double" = type { ptr, double, double, double }
%"class.DIS::Orientation" = type <{ ptr, float, float, float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::EntityType, std::allocator<DIS::EntityType>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

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

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

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

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

17:                                               ; preds = %16, %2
  %18 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 3
  %19 = load i16, ptr %18, align 8, !tbaa !11
  %20 = zext i16 %19 to i32
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %21, i32 0, i32 3
  %23 = load i16, ptr %22, align 8, !tbaa !11
  %24 = zext i16 %23 to i32
  %25 = icmp eq i32 %20, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %26, %17
  %28 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 4
  %29 = load i8, ptr %28, align 2, !tbaa !31
  %30 = zext i8 %29 to i32
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %31, i32 0, i32 4
  %33 = load i8, ptr %32, align 2, !tbaa !31
  %34 = zext i8 %33 to i32
  %35 = icmp eq i32 %30, %34
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %36, %27
  %38 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %39, i32 0, i32 6
  %41 = call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %40)
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %43

43:                                               ; preds = %42, %37
  %44 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 8
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %45, i32 0, i32 8
  %47 = call noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %46)
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %49

49:                                               ; preds = %48, %43
  %50 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 9
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %51, i32 0, i32 9
  %53 = call noundef zeroext i1 @_ZNK3DIS11OrientationeqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %50, ptr noundef nonnull align 8 dereferenceable(20) %52)
  br i1 %53, label %55, label %54

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

55:                                               ; preds = %54, %49
  %56 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 10
  %57 = load i16, ptr %56, align 8, !tbaa !32
  %58 = zext i16 %57 to i32
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %59, i32 0, i32 10
  %61 = load i16, ptr %60, align 8, !tbaa !32
  %62 = zext i16 %61 to i32
  %63 = icmp eq i32 %58, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %64, %55
  %66 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 11
  %67 = load i16, ptr %66, align 2, !tbaa !33
  %68 = zext i16 %67 to i32
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %69, i32 0, i32 11
  %71 = load i16, ptr %70, align 2, !tbaa !33
  %72 = zext i16 %71 to i32
  %73 = icmp eq i32 %68, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %65
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %75

75:                                               ; preds = %74, %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !34
  br label %76

76:                                               ; preds = %93, %75
  %77 = load i64, ptr %6, align 8, !tbaa !34
  %78 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 12
  %79 = call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #4
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %96

82:                                               ; preds = %76
  %83 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 12
  %84 = load i64, ptr %6, align 8, !tbaa !34
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #4
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %86, i32 0, i32 12
  %88 = load i64, ptr %6, align 8, !tbaa !34
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %88) #4
  %90 = call noundef zeroext i1 @_ZNK3DIS5PointeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %85, ptr noundef nonnull align 8 dereferenceable(16) %89)
  br i1 %90, label %92, label %91

91:                                               ; preds = %82
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %92

92:                                               ; preds = %91, %82
  br label %93

93:                                               ; preds = %92
  %94 = load i64, ptr %6, align 8, !tbaa !34
  %95 = add i64 %94, 1
  store i64 %95, ptr %6, align 8, !tbaa !34
  br label %76, !llvm.loop !36

96:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !34
  br label %97

97:                                               ; preds = %114, %96
  %98 = load i64, ptr %7, align 8, !tbaa !34
  %99 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 13
  %100 = call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #4
  %101 = icmp ult i64 %98, %100
  br i1 %101, label %103, label %102

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

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %8, i32 0, i32 13
  %105 = load i64, ptr %7, align 8, !tbaa !34
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %105) #4
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.DIS::MinefieldStatePdu", ptr %107, i32 0, i32 13
  %109 = load i64, ptr %7, align 8, !tbaa !34
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109) #4
  %111 = call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 8 dereferenceable(16) %110)
  br i1 %111, label %113, label %112

112:                                              ; preds = %103
  store i8 0, ptr %5, align 1, !tbaa !9
  br label %113

113:                                              ; preds = %112, %103
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %7, align 8, !tbaa !34
  %116 = add i64 %115, 1
  store i64 %116, ptr %7, align 8, !tbaa !34
  br label %97, !llvm.loop !38

117:                                              ; preds = %102
  %118 = load i8, ptr %5, align 1, !tbaa !9, !range !39, !noundef !40
  %119 = trunc i8 %118 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %119
}

declare noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) #3

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

declare noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

declare noundef zeroext i1 @_ZNK3DIS11OrientationeqERKS0_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(20)) #3

declare noundef zeroext i1 @_ZNK3DIS5PointeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !16, i64 40}
!12 = !{!"_ZTSN3DIS17MinefieldStatePduE", !13, i64 0, !17, i64 24, !16, i64 40, !7, i64 42, !7, i64 43, !18, i64 48, !16, i64 64, !19, i64 72, !21, i64 104, !16, i64 128, !16, i64 130, !23, i64 136, !27, i64 160}
!13 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !14, i64 0}
!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 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !16, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!19 = !{!"_ZTSN3DIS13Vector3DoubleE", !20, i64 8, !20, i64 16, !20, i64 24}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN3DIS11OrientationE", !22, i64 8, !22, i64 12, !22, i64 16}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN3DIS10EntityTypeESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!12, !7, i64 42}
!32 = !{!12, !16, i64 128}
!33 = !{!12, !16, i64 130}
!34 = !{!35, !35, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{i8 0, i8 2}
!40 = !{}


; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3DIS17MinefieldStatePdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(184) %0, ptr noundef nonnull align 8 dereferenceable(184) %1) local_unnamed_addr #1 align 2 {
  %3 = tail call noundef zeroext i1 @_ZNK3DIS18MinefieldFamilyPdueqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = tail call noundef zeroext i1 @_ZNK3DIS8EntityIDeqERKS0_(ptr noundef nonnull align 8 dereferenceable(14) %4, ptr noundef nonnull align 8 dereferenceable(14) %5)
  %narrow = and i1 %3, %6
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load i16, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  %10 = load i16, ptr %9, align 8, !tbaa !5
  %11 = icmp eq i16 %8, %10
  %narrow24 = and i1 %narrow, %11
  %12 = getelementptr inbounds i8, ptr %0, i64 42
  %13 = load i8, ptr %12, align 2, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %1, i64 42
  %15 = load i8, ptr %14, align 2, !tbaa !28
  %16 = icmp eq i8 %13, %15
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %1, i64 48
  %19 = tail call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = getelementptr inbounds i8, ptr %1, i64 72
  %22 = tail call noundef zeroext i1 @_ZNK3DIS13Vector3DoubleeqERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
  %23 = and i1 %19, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = getelementptr inbounds i8, ptr %1, i64 104
  %26 = tail call noundef zeroext i1 @_ZNK3DIS11OrientationeqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %24, ptr noundef nonnull align 8 dereferenceable(20) %25)
  %27 = and i1 %26, %23
  %28 = getelementptr inbounds i8, ptr %0, i64 128
  %29 = load i16, ptr %28, align 8, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %1, i64 128
  %31 = load i16, ptr %30, align 8, !tbaa !29
  %32 = icmp eq i16 %29, %31
  %33 = and i1 %27, %32
  %34 = getelementptr inbounds i8, ptr %0, i64 130
  %35 = load i16, ptr %34, align 2, !tbaa !30
  %36 = getelementptr inbounds i8, ptr %1, i64 130
  %37 = load i16, ptr %36, align 2, !tbaa !30
  %38 = icmp eq i16 %35, %37
  %39 = select i1 %38, i1 %33, i1 false
  %40 = select i1 %39, i1 %16, i1 false
  %narrow30 = select i1 %40, i1 %narrow24, i1 false
  %41 = getelementptr inbounds i8, ptr %0, i64 136
  %42 = tail call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #3
  %.not = icmp eq i64 %42, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %43 = getelementptr inbounds i8, ptr %1, i64 136
  br label %47

.preheader:                                       ; preds = %47, %2
  %.8.lcssa = phi i1 [ %narrow30, %2 ], [ %spec.select22, %47 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 160
  %45 = tail call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #3
  %.not37 = icmp eq i64 %45, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph35

.lr.ph35:                                         ; preds = %.preheader
  %46 = getelementptr inbounds i8, ptr %1, i64 160
  br label %54

47:                                               ; preds = %.lr.ph, %47
  %.02032 = phi i64 [ 0, %.lr.ph ], [ %51, %47 ]
  %.831 = phi i1 [ %narrow30, %.lr.ph ], [ %spec.select22, %47 ]
  %48 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %.02032) #3
  %49 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS5PointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %.02032) #3
  %50 = tail call noundef zeroext i1 @_ZNK3DIS5PointeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %49)
  %spec.select22 = select i1 %50, i1 %.831, i1 false
  %51 = add nuw i64 %.02032, 1
  %52 = tail call noundef i64 @_ZNKSt6vectorIN3DIS5PointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #3
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %47, label %.preheader, !llvm.loop !31

._crit_edge:                                      ; preds = %54, %.preheader
  %.10.lcssa = phi i1 [ %.8.lcssa, %.preheader ], [ %spec.select23, %54 ]
  ret i1 %.10.lcssa

54:                                               ; preds = %.lr.ph35, %54
  %.034 = phi i64 [ 0, %.lr.ph35 ], [ %58, %54 ]
  %.1033 = phi i1 [ %.8.lcssa, %.lr.ph35 ], [ %spec.select23, %54 ]
  %55 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %.034) #3
  %56 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %.034) #3
  %57 = tail call noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %56)
  %spec.select23 = select i1 %57, i1 %.1033, i1 false
  %58 = add nuw i64 %.034, 1
  %59 = tail call noundef i64 @_ZNKSt6vectorIN3DIS10EntityTypeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #3
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %54, label %._crit_edge, !llvm.loop !33
}

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

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

declare noundef zeroext i1 @_ZNK3DIS10EntityTypeeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZNK3DIS5PointeqERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

attributes #0 = { 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 #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 = { "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, !12, i64 40}
!6 = !{!"_ZTSN3DIS17MinefieldStatePduE", !7, i64 0, !13, i64 24, !12, i64 40, !9, i64 42, !9, i64 43, !14, i64 48, !12, i64 64, !15, i64 72, !17, i64 104, !12, i64 128, !12, i64 130, !19, i64 136, !24, i64 160}
!7 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !8, i64 0}
!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 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!15 = !{!"_ZTSN3DIS13Vector3DoubleE", !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTSN3DIS11OrientationE", !18, i64 8, !18, i64 12, !18, i64 16}
!18 = !{!"float", !9, i64 0}
!19 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!23 = !{!"any pointer", !9, i64 0}
!24 = !{!"_ZTSSt6vectorIN3DIS10EntityTypeESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN3DIS10EntityTypeESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!28 = !{!6, !9, i64 42}
!29 = !{!6, !12, i64 128}
!30 = !{!6, !12, i64 130}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


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