; LLVM IR from bldeng/AASolver :: AndersonOpt/external/OpenMesh/Core/IO/writer (OMWriter)

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

%"struct.OpenMesh::IO::OMFormat::Chunk::Header" = type { i32 }
%"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] }

@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb = external hidden unnamed_addr constant [134 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO5storeINS0_8OMFormat5Chunk6HeaderEEEmRSoRKT_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO5storeImEEmRSoRKT_NS0_8OMFormat5Chunk12Integer_SizeEb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, i32 noundef %3, i1 noundef zeroext %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.OpenMesh::IO::OMFormat::Chunk::Header", align 4
  %15 = alloca %"class.OpenMesh::IO::OMFormat::Chunk::PropertyName", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  %20 = zext i1 %4 to i8
  store i8 %20, ptr %11, align 1, !tbaa !11
  %21 = load ptr, ptr %7, align 8
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZNK8OpenMesh12BaseProperty10persistentEv(ptr noundef nonnull align 8 dereferenceable(41) %22)
  br i1 %23, label %24, label %28

24:                                               ; preds = %5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41) %25)
  %27 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  br i1 %27, label %28, label %29

28:                                               ; preds = %24, %5
  store i64 0, ptr %6, align 8
  br label %115

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds ptr, ptr %31, i64 12
  %33 = load ptr, ptr %32, align 8
  %34 = call noundef i64 %33(ptr noundef nonnull align 8 dereferenceable(41) %30)
  %35 = trunc i64 %34 to i32
  store i32 %35, ptr %13, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %36 = load i32, ptr %14, align 4
  %37 = and i32 %36, -3
  %38 = or i32 %37, 2
  store i32 %38, ptr %14, align 4
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4
  %41 = and i32 %39, 7
  %42 = shl i32 %41, 2
  %43 = and i32 %40, -29
  %44 = or i32 %43, %42
  store i32 %44, ptr %14, align 4
  %45 = load i32, ptr %14, align 4
  %46 = and i32 %45, -481
  %47 = or i32 %46, 192
  store i32 %47, ptr %14, align 4
  %48 = load i32, ptr %14, align 4
  %49 = and i32 %48, -513
  %50 = or i32 %49, 0
  store i32 %50, ptr %14, align 4
  %51 = load i32, ptr %14, align 4
  %52 = and i32 %51, -1025
  %53 = or i32 %52, 0
  store i32 %53, ptr %14, align 4
  %54 = load i32, ptr %14, align 4
  %55 = and i32 %54, -14337
  %56 = or i32 %55, 0
  store i32 %56, ptr %14, align 4
  %57 = load i32, ptr %13, align 4, !tbaa !17
  %58 = load i32, ptr %14, align 4
  %59 = and i32 %57, 3
  %60 = shl i32 %59, 14
  %61 = and i32 %58, -49153
  %62 = or i32 %61, %60
  store i32 %62, ptr %14, align 4
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %65 = trunc i8 %64 to i1
  %66 = call noundef i64 @_ZN8OpenMesh2IO5storeINS0_8OMFormat5Chunk6HeaderEEEmRSoRKT_b(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(4) %14, i1 noundef zeroext %65)
  %67 = load i64, ptr %12, align 8, !tbaa !13
  %68 = add i64 %67, %66
  store i64 %68, ptr %12, align 8, !tbaa !13
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41) %70)
  call void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %71)
  %72 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %73 = trunc i8 %72 to i1
  %74 = invoke noundef i64 @_ZN8OpenMesh2IO5storeINS0_8OMFormat5Chunk12PropertyNameEEEmRSoRKT_b(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(32) %15, i1 noundef zeroext %73)
          to label %75 unwind label %108

75:                                               ; preds = %29
  %76 = load i64, ptr %12, align 8, !tbaa !13
  %77 = add i64 %76, %74
  store i64 %77, ptr %12, align 8, !tbaa !13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  %81 = getelementptr inbounds ptr, ptr %80, i64 13
  %82 = load ptr, ptr %81, align 8
  %83 = call noundef i64 %82(ptr noundef nonnull align 8 dereferenceable(41) %79)
  store i64 %83, ptr %18, align 8, !tbaa !13
  %84 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %85 = trunc i8 %84 to i1
  %86 = call noundef i64 @_ZN8OpenMesh2IO5storeImEEmRSoRKT_NS0_8OMFormat5Chunk12Integer_SizeEb(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 2, i1 noundef zeroext %85)
  %87 = load i64, ptr %12, align 8, !tbaa !13
  %88 = add i64 %87, %86
  store i64 %88, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %92 = trunc i8 %91 to i1
  %93 = load ptr, ptr %89, align 8, !tbaa !15
  %94 = getelementptr inbounds ptr, ptr %93, i64 15
  %95 = load ptr, ptr %94, align 8
  %96 = call noundef i64 %95(ptr noundef nonnull align 8 dereferenceable(41) %89, ptr noundef nonnull align 8 dereferenceable(8) %90, i1 noundef zeroext %92)
  store i64 %96, ptr %19, align 8, !tbaa !13
  %97 = load i64, ptr %12, align 8, !tbaa !13
  %98 = add i64 %97, %96
  store i64 %98, ptr %12, align 8, !tbaa !13
  %99 = load i64, ptr %19, align 8, !tbaa !13
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = getelementptr inbounds ptr, ptr %101, i64 13
  %103 = load ptr, ptr %102, align 8
  %104 = call noundef i64 %103(ptr noundef nonnull align 8 dereferenceable(41) %100)
  %105 = icmp eq i64 %99, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %75
  br label %113

107:                                              ; preds = %75
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 489, ptr noundef @__PRETTY_FUNCTION__._ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb) #6
  unreachable

108:                                              ; preds = %29
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %16, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %117

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %114 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %114, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %115

115:                                              ; preds = %113, %28
  %116 = load i64, ptr %6, align 8
  ret i64 %116

117:                                              ; preds = %108
  %118 = load ptr, ptr %16, align 8
  %119 = load i32, ptr %17, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh12BaseProperty10persistentEv(ptr noundef nonnull align 8 dereferenceable(41)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { noreturn nounwind "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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"_ZTSN8OpenMesh2IO8OMFormat5Chunk6EntityE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


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

%"struct.OpenMesh::IO::OMFormat::Chunk::Header" = type { i32 }
%"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] }

@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb = external hidden unnamed_addr constant [134 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN8OpenMesh2IO5storeImEEmRSoRKT_NS0_8OMFormat5Chunk12Integer_SizeEb(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.OpenMesh::IO::OMFormat::Chunk::Header", align 4
  %7 = alloca %"class.OpenMesh::IO::OMFormat::Chunk::PropertyName", align 8
  %8 = alloca i64, align 8
  %9 = tail call noundef zeroext i1 @_ZNK8OpenMesh12BaseProperty10persistentEv(ptr noundef nonnull align 8 dereferenceable(41) %2)
  br i1 %9, label %10, label %50

10:                                               ; preds = %5
  %11 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41) %2)
  %12 = tail call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br i1 %12, label %50, label %13

13:                                               ; preds = %10
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 96
  %16 = load ptr, ptr %15, align 8
  %17 = tail call noundef i64 %16(ptr noundef nonnull align 8 dereferenceable(41) %2)
  %18 = trunc i64 %17 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %19 = shl i32 %3, 2
  %20 = and i32 %19, 28
  %21 = shl i32 %18, 14
  %22 = and i32 %21, 49152
  %23 = or disjoint i32 %20, %22
  %24 = or disjoint i32 %23, 194
  store i32 %24, ptr %6, align 4
  %25 = call noundef i64 @_ZN8OpenMesh2IO5storeINS0_8OMFormat5Chunk6HeaderEEEmRSoRKT_b(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %6, i1 noundef zeroext %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8OpenMesh12BaseProperty4nameB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(41) %2)
  call void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
  %27 = invoke noundef i64 @_ZN8OpenMesh2IO5storeINS0_8OMFormat5Chunk12PropertyNameEEEmRSoRKT_b(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %7, i1 noundef zeroext %4)
          to label %28 unwind label %44

28:                                               ; preds = %13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 104
  %31 = load ptr, ptr %30, align 8
  %32 = call noundef i64 %31(ptr noundef nonnull align 8 dereferenceable(41) %2)
  store i64 %32, ptr %8, align 8, !tbaa !8
  %33 = call noundef i64 @_ZN8OpenMesh2IO5storeImEEmRSoRKT_NS0_8OMFormat5Chunk12Integer_SizeEb(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 2, i1 noundef zeroext %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 120
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef i64 %36(ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %4)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 104
  %40 = load ptr, ptr %39, align 8
  %41 = call noundef i64 %40(ptr noundef nonnull align 8 dereferenceable(41) %2)
  %42 = icmp eq i64 %37, %41
  br i1 %42, label %46, label %43

43:                                               ; preds = %28
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 489, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK8OpenMesh2IO10_OMWriter_25store_binary_custom_chunkERSoRKNS_12BasePropertyENS0_8OMFormat5Chunk6EntityEb) #6
  unreachable

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

46:                                               ; preds = %28
  %47 = add i64 %27, %25
  %48 = add i64 %47, %33
  %49 = add i64 %48, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %50

50:                                               ; preds = %5, %10, %46
  %.0 = phi i64 [ %49, %46 ], [ 0, %10 ], [ 0, %5 ]
  ret i64 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh12BaseProperty10persistentEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh2IO8OMFormat5Chunk12PropertyNameC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { noreturn nounwind "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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


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