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

; 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::Options" = type { i32 }
%"class.OpenMesh::IO::_PLYWriter_" = type { %"class.OpenMesh::IO::BaseWriter", %"class.OpenMesh::IO::Options", [12 x ptr] }
%"class.OpenMesh::IO::BaseWriter" = type { ptr }

@.str.10 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) 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: 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 void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #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 uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_5writeERSoRNS0_12BaseExporterENS0_7OptionsEl(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i64 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.OpenMesh::IO::Options", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %"class.OpenMesh::IO::Options", align 4
  %17 = alloca i1, align 1
  %18 = alloca %"class.OpenMesh::IO::Options", align 4
  %19 = alloca i1, align 1
  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 ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  %20 = load ptr, ptr %7, align 8
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %22 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %12)
          to label %23 unwind label %26

23:                                               ; preds = %5
  %24 = xor i1 %22, true
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #6
  br i1 %24, label %25, label %30

25:                                               ; preds = %23
  store i1 false, ptr %6, align 1
  br label %106

26:                                               ; preds = %5
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %13, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %14, align 4
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12) #6
  br label %108

30:                                               ; preds = %23
  %31 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
  br i1 %31, label %32, label %37

32:                                               ; preds = %30
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
  %34 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.10)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %37

37:                                               ; preds = %32, %30
  %38 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  br i1 %38, label %39, label %44

39:                                               ; preds = %37
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  %41 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str.11)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %44

44:                                               ; preds = %39, %37
  %45 = getelementptr inbounds %"class.OpenMesh::IO::_PLYWriter_", ptr %20, i32 0, i32 1
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7OptionsaSERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr i8, ptr %48, i64 -24
  %50 = load i64, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr %47, i64 %50
  %52 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %51)
  br i1 %52, label %57, label %53

53:                                               ; preds = %44
  %54 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.12)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i1 false, ptr %6, align 1
  br label %106

57:                                               ; preds = %44
  %58 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  br i1 %58, label %67, label %59

59:                                               ; preds = %57
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr i8, ptr %61, i64 -24
  %63 = load i64, ptr %62, align 8
  %64 = getelementptr inbounds i8, ptr %60, i64 %63
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %64, i64 noundef %65)
  br label %67

67:                                               ; preds = %59, %57
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %68 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  store i1 false, ptr %17, align 1
  store i1 false, ptr %19, align 1
  br i1 %68, label %69, label %74

69:                                               ; preds = %67
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i1 true, ptr %17, align 1
  %72 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %20, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef %16)
          to label %73 unwind label %91

73:                                               ; preds = %69
  br label %80

74:                                               ; preds = %67
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %77 unwind label %91

77:                                               ; preds = %74
  store i1 true, ptr %19, align 1
  %78 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_11write_asciiERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %20, ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef %18)
          to label %79 unwind label %95

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79, %73
  %81 = phi i1 [ %72, %73 ], [ %78, %79 ]
  %82 = load i1, ptr %19, align 1
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %18) #6
  br label %84

84:                                               ; preds = %83, %80
  %85 = load i1, ptr %17, align 1
  br i1 %85, label %86, label %87

86:                                               ; preds = %84
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #6
  br label %87

87:                                               ; preds = %86, %84
  %88 = zext i1 %81 to i8
  store i8 %88, ptr %15, align 1, !tbaa !13
  %89 = load i8, ptr %15, align 1, !tbaa !13, !range !15, !noundef !16
  %90 = trunc i8 %89 to i1
  store i1 %90, ptr %6, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %106

91:                                               ; preds = %74, %69
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %13, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %14, align 4
  br label %102

95:                                               ; preds = %77
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %13, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %14, align 4
  %99 = load i1, ptr %19, align 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %95
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %18) #6
  br label %101

101:                                              ; preds = %100, %95
  br label %102

102:                                              ; preds = %101, %91
  %103 = load i1, ptr %17, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %16) #6
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %108

106:                                              ; preds = %87, %53, %25
  %107 = load i1, ptr %6, align 1
  ret i1 %107

108:                                              ; preds = %105, %26
  %109 = load ptr, ptr %13, align 8
  %110 = load i32, ptr %14, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv() #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_11write_asciiERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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 = { "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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::Options" = type { i32 }

@.str.10 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; 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 void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_5writeERSoRNS0_12BaseExporterENS0_7OptionsEl(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %3, i64 noundef %4) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.OpenMesh::IO::Options", align 4
  %7 = alloca %"class.OpenMesh::IO::Options", align 4
  %8 = alloca %"class.OpenMesh::IO::Options", align 4
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %9 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %6)
          to label %10 unwind label %11

10:                                               ; preds = %5
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  br i1 %9, label %13, label %58

11:                                               ; preds = %5
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %59

13:                                               ; preds = %10
  %14 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
  br i1 %14, label %15, label %20

15:                                               ; preds = %13
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
  %17 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.10)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %20

20:                                               ; preds = %15, %13
  %21 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  br i1 %21, label %22, label %27

22:                                               ; preds = %20
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  %24 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.11)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %27

27:                                               ; preds = %22, %20
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7OptionsaSERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr %1, i64 %32
  %34 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %33)
  br i1 %34, label %39, label %35

35:                                               ; preds = %27
  %36 = call noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.12)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %58

39:                                               ; preds = %27
  %40 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  br i1 %40, label %47, label %41

41:                                               ; preds = %39
  %42 = load ptr, ptr %1, align 8, !tbaa !5
  %43 = getelementptr i8, ptr %42, i64 -24
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %1, i64 %44
  %46 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %45, i64 noundef %4)
  br label %47

47:                                               ; preds = %41, %39
  %48 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  br i1 %48, label %49, label %51

49:                                               ; preds = %47
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %50 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %7)
          to label %.critedge unwind label %56

51:                                               ; preds = %47
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %52 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_11write_asciiERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %8)
          to label %53 unwind label %54

53:                                               ; preds = %51
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %8) #5
  br label %58

.critedge:                                        ; preds = %49
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %7) #5
  br label %58

54:                                               ; preds = %51
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %59

56:                                               ; preds = %49
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %59

58:                                               ; preds = %53, %.critedge, %10, %35
  %.017 = phi i1 [ false, %35 ], [ false, %10 ], [ %50, %.critedge ], [ %52, %53 ]
  ret i1 %.017

59:                                               ; preds = %54, %56, %11
  %.sink = phi ptr [ %8, %54 ], [ %7, %56 ], [ %6, %11 ]
  %.pn.pn = phi { ptr, i32 } [ %55, %54 ], [ %57, %56 ], [ %12, %11 ]
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %.sink) #5
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh2IO7Options5unsetEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_11write_asciiERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 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 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 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass