; LLVM IR from bldeng/AASolver :: AndersonOpt/external/OpenMesh/Core/IO/reader (OMReader)

; 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.OpenMesh::IO::OMFormat::Chunk::PropertyName" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.OpenMesh::IO::_OMReader_" = type { %"class.OpenMesh::IO::BaseReader", i64, %"class.OpenMesh::IO::Options", %"struct.OpenMesh::IO::OMFormat::Header", %"struct.OpenMesh::IO::OMFormat::Chunk::Header", %"class.OpenMesh::IO::OMFormat::Chunk::PropertyName" }
%"class.OpenMesh::IO::BaseReader" = type { ptr }
%"class.OpenMesh::IO::Options" = type { i32 }
%"struct.OpenMesh::IO::OMFormat::Header" = type { [2 x i8], i8, i8, i32, i32, i32 }
%"struct.OpenMesh::IO::OMFormat::Chunk::Header" = type { i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_11read_binaryERSiRNS0_12BaseImporterERNS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %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 i8, align 1
  %11 = alloca %"class.OpenMesh::IO::OMFormat::Chunk::PropertyName", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  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
  %15 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef 8)
  br i1 %17, label %21, label %18

18:                                               ; preds = %4
  %19 = call noundef i32 @_ZN8OpenMesh6Endian5localEv()
  %20 = icmp eq i32 %19, 2
  br label %21

21:                                               ; preds = %18, %4
  %22 = phi i1 [ true, %4 ], [ %20, %18 ]
  %23 = zext i1 %22 to i8
  store i8 %23, ptr %10, align 1, !tbaa !9
  %24 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 1
  store i64 0, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 3
  %27 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %28 = trunc i8 %27 to i1
  %29 = call noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %26, i1 noundef zeroext %28)
  %30 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = add i64 %31, %29
  store i64 %32, ptr %30, align 8, !tbaa !11
  br label %33

33:                                               ; preds = %128, %21
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !24
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr %34, i64 %37
  %39 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %38)
  %40 = xor i1 %39, true
  br i1 %40, label %41, label %129

41:                                               ; preds = %33
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 4
  %44 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %45 = trunc i8 %44 to i1
  %46 = call noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, i1 noundef zeroext %45)
  %47 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = add i64 %48, %46
  store i64 %49, ptr %47, align 8, !tbaa !11
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = getelementptr i8, ptr %51, i64 -24
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %50, i64 %53
  %55 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
  br i1 %55, label %56, label %57

56:                                               ; preds = %41
  br label %129

57:                                               ; preds = %41
  %58 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 4
  %59 = load i32, ptr %58, align 4
  %60 = lshr i32 %59, 1
  %61 = and i32 %60, 1
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %77

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 5
  %66 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %67 = trunc i8 %66 to i1
  %68 = invoke noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk12PropertyNameEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(32) %65, i1 noundef zeroext %67)
          to label %69 unwind label %73

69:                                               ; preds = %63
  %70 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = add i64 %71, %68
  store i64 %72, ptr %70, align 8, !tbaa !11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %77

73:                                               ; preds = %63
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %132

77:                                               ; preds = %69, %57
  %78 = getelementptr inbounds %"class.OpenMesh::IO::_OMReader_", ptr %15, i32 0, i32 4
  %79 = load i32, ptr %78, align 4
  %80 = lshr i32 %79, 2
  %81 = and i32 %80, 7
  switch i32 %81, label %127 [
    i32 0, label %82
    i32 2, label %91
    i32 4, label %100
    i32 6, label %109
    i32 1, label %118
  ]

82:                                               ; preds = %77
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %87 = trunc i8 %86 to i1
  %88 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_24read_binary_vertex_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 4 dereferenceable(4) %85, i1 noundef zeroext %87)
  br i1 %88, label %90, label %89

89:                                               ; preds = %82
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

90:                                               ; preds = %82
  br label %128

91:                                               ; preds = %77
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %96 = trunc i8 %95 to i1
  %97 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_face_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 4 dereferenceable(4) %94, i1 noundef zeroext %96)
  br i1 %97, label %99, label %98

98:                                               ; preds = %91
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

99:                                               ; preds = %91
  br label %128

100:                                              ; preds = %77
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %105 = trunc i8 %104 to i1
  %106 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_edge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(16) %101, ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull align 4 dereferenceable(4) %103, i1 noundef zeroext %105)
  br i1 %106, label %108, label %107

107:                                              ; preds = %100
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

108:                                              ; preds = %100
  br label %128

109:                                              ; preds = %77
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %114 = trunc i8 %113 to i1
  %115 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_26read_binary_halfedge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull align 4 dereferenceable(4) %112, i1 noundef zeroext %114)
  br i1 %115, label %117, label %116

116:                                              ; preds = %109
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

117:                                              ; preds = %109
  br label %128

118:                                              ; preds = %77
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %123 = trunc i8 %122 to i1
  %124 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_mesh_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull align 4 dereferenceable(4) %121, i1 noundef zeroext %123)
  br i1 %124, label %126, label %125

125:                                              ; preds = %118
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

126:                                              ; preds = %118
  br label %128

127:                                              ; preds = %77
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

128:                                              ; preds = %126, %117, %108, %99, %90
  br label %33, !llvm.loop !26

129:                                              ; preds = %56, %33
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %130

130:                                              ; preds = %129, %127, %125, %116, %107, %98, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  %131 = load i1, ptr %5, align 1
  ret i1 %131

132:                                              ; preds = %73
  %133 = load ptr, ptr %12, align 8
  %134 = load i32, ptr %13, align 4
  %135 = insertvalue { ptr, i32 } poison, ptr %133, 0
  %136 = insertvalue { ptr, i32 } %135, i32 %134, 1
  resume { ptr, i32 } %136
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8OpenMesh6Endian5localEv() #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk12PropertyNameEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_24read_binary_vertex_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_face_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_edge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_26read_binary_halfedge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_mesh_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 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 = { 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 = { inlinehint 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 }

!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 8}
!12 = !{!"_ZTSN8OpenMesh2IO10_OMReader_E", !13, i64 0, !14, i64 8, !15, i64 16, !17, i64 20, !18, i64 36, !19, i64 40}
!13 = !{!"_ZTSN8OpenMesh2IO10BaseReaderE"}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN8OpenMesh2IO7OptionsE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN8OpenMesh2IO8OMFormat6HeaderE", !7, i64 0, !7, i64 2, !7, i64 3, !16, i64 4, !16, i64 8, !16, i64 12}
!18 = !{!"_ZTSN8OpenMesh2IO8OMFormat5Chunk6HeaderE", !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 2}
!19 = !{!"_ZTSN8OpenMesh2IO8OMFormat5Chunk12PropertyNameE", !20, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !14, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"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"

%"class.OpenMesh::IO::OMFormat::Chunk::PropertyName" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_11read_binaryERSiRNS0_12BaseImporterERNS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.OpenMesh::IO::OMFormat::Chunk::PropertyName", align 8
  %6 = tail call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 8)
  br i1 %6, label %10, label %7

7:                                                ; preds = %4
  %8 = tail call noundef i32 @_ZN8OpenMesh6Endian5localEv()
  %9 = icmp eq i32 %8, 2
  br label %10

10:                                               ; preds = %7, %4
  %11 = phi i1 [ true, %4 ], [ %9, %7 ]
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 20
  %14 = tail call noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %13, i1 noundef zeroext %11)
  %15 = load i64, ptr %12, align 8, !tbaa !5
  %16 = add i64 %15, %14
  store i64 %16, ptr %12, align 8, !tbaa !5
  %17 = load ptr, ptr %1, align 8, !tbaa !19
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %1, i64 %19
  %21 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %20)
  br i1 %21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %22 = getelementptr inbounds i8, ptr %0, i64 36
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  br label %24

24:                                               ; preds = %.lr.ph, %57
  %25 = call noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %22, i1 noundef zeroext %11)
  %26 = load i64, ptr %12, align 8, !tbaa !5
  %27 = add i64 %26, %25
  store i64 %27, ptr %12, align 8, !tbaa !5
  %28 = load ptr, ptr %1, align 8, !tbaa !19
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %1, i64 %30
  %32 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %31)
  br i1 %32, label %._crit_edge, label %33

33:                                               ; preds = %24
  %34 = load i32, ptr %22, align 4
  %35 = and i32 %34, 2
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %43, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %37 = invoke noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk12PropertyNameEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(32) %23, i1 noundef zeroext %11)
          to label %38 unwind label %41

38:                                               ; preds = %36
  %39 = load i64, ptr %12, align 8, !tbaa !5
  %40 = add i64 %39, %37
  store i64 %40, ptr %12, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  %.pre = load i32, ptr %22, align 4
  br label %43

41:                                               ; preds = %36
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  resume { ptr, i32 } %42

43:                                               ; preds = %38, %33
  %44 = phi i32 [ %.pre, %38 ], [ %34, %33 ]
  %45 = lshr i32 %44, 2
  %46 = and i32 %45, 7
  switch i32 %46, label %._crit_edge [
    i32 0, label %47
    i32 2, label %49
    i32 4, label %51
    i32 6, label %53
    i32 1, label %55
  ]

47:                                               ; preds = %43
  %48 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_24read_binary_vertex_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %11)
  br i1 %48, label %57, label %._crit_edge

49:                                               ; preds = %43
  %50 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_face_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %11)
  br i1 %50, label %57, label %._crit_edge

51:                                               ; preds = %43
  %52 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_edge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %11)
  br i1 %52, label %57, label %._crit_edge

53:                                               ; preds = %43
  %54 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_26read_binary_halfedge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %11)
  br i1 %54, label %57, label %._crit_edge

55:                                               ; preds = %43
  %56 = call noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_mesh_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i1 noundef zeroext %11)
  br i1 %56, label %57, label %._crit_edge

57:                                               ; preds = %55, %53, %51, %49, %47
  %58 = load ptr, ptr %1, align 8, !tbaa !19
  %59 = getelementptr i8, ptr %58, i64 -24
  %60 = load i64, ptr %59, align 8
  %61 = getelementptr inbounds i8, ptr %1, i64 %60
  %62 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %61)
  br i1 %62, label %._crit_edge, label %24, !llvm.loop !21

._crit_edge:                                      ; preds = %47, %49, %51, %53, %55, %43, %24, %57, %10
  %.0 = phi i1 [ true, %10 ], [ true, %57 ], [ true, %24 ], [ false, %43 ], [ false, %55 ], [ false, %53 ], [ false, %51 ], [ false, %49 ], [ false, %47 ]
  ret i1 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8OpenMesh6Endian5localEv() local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk6HeaderEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO7restoreINS0_8OMFormat5Chunk12PropertyNameEEEmRSiRT_b(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_24read_binary_vertex_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_face_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_edge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_26read_binary_halfedge_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10_OMReader_22read_binary_mesh_chunkERSiRNS0_12BaseImporterERNS0_7OptionsEb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 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 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 = { inlinehint 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 }

!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 8}
!6 = !{!"_ZTSN8OpenMesh2IO10_OMReader_E", !7, i64 0, !8, i64 8, !11, i64 16, !13, i64 20, !14, i64 36, !15, i64 40}
!7 = !{!"_ZTSN8OpenMesh2IO10BaseReaderE"}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8OpenMesh2IO7OptionsE", !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTSN8OpenMesh2IO8OMFormat6HeaderE", !9, i64 0, !9, i64 2, !9, i64 3, !12, i64 4, !12, i64 8, !12, i64 12}
!14 = !{!"_ZTSN8OpenMesh2IO8OMFormat5Chunk6HeaderE", !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 2}
!15 = !{!"_ZTSN8OpenMesh2IO8OMFormat5Chunk12PropertyNameE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !8, i64 8, !9, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass