; LLVM IR from bohanwang/libpgo :: src/core/volumetricMesh (volumetricMeshParser)

; 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.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.std::allocator.0" = type { i8 }
%"class.pgo::VolumetricMeshes::VolumetricMeshParser" = type <{ ptr, %"class.std::vector", %"class.std::__cxx11::basic_string", [96 x i8], i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<_IO_FILE *, std::allocator<_IO_FILE *>>::_Vector_impl" }
%"struct.std::_Vector_base<_IO_FILE *, std::allocator<_IO_FILE *>>::_Vector_impl" = type { %"struct.std::_Vector_base<_IO_FILE *, std::allocator<_IO_FILE *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<_IO_FILE *, std::allocator<_IO_FILE *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZTIi = external constant ptr
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP8_IO_FILESaIS1_EE8pop_backEv(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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(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.end.p0(i64 immarg, ptr nocapture) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP8_IO_FILESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser5closeEv(ptr noundef nonnull align 8 dereferenceable(164)) #2 align 2

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

declare i32 @fclose(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef, i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser11getNextLineEPcii(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.0", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %19 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  br label %20

20:                                               ; preds = %68, %4
  br label %21

21:                                               ; preds = %33, %20
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = call ptr @fgets(ptr noundef %22, i32 noundef 1023, ptr noundef %24)
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %31

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 1
  %29 = call noundef i64 @_ZNKSt6vectorIP8_IO_FILESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %30 = icmp ugt i64 %29, 1
  br label %31

31:                                               ; preds = %27, %21
  %32 = phi i1 [ false, %21 ], [ %30, %27 ]
  br i1 %32, label %33, label %45

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = call i32 @fclose(ptr noundef %35)
  %37 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 1
  call void @_ZNSt6vectorIP8_IO_FILESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #6
  %38 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 1
  %39 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 1
  %40 = call noundef i64 @_ZNKSt6vectorIP8_IO_FILESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %41 = sub i64 %40, 1
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8_IO_FILESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %41) #6
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 0
  store ptr %43, ptr %44, align 8, !tbaa !11
  br label %21, !llvm.loop !20

45:                                               ; preds = %31
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store ptr null, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %159

49:                                               ; preds = %45
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 0
  %53 = load i8, ptr %52, align 1, !tbaa !22
  %54 = sext i8 %53 to i32
  %55 = icmp eq i32 %54, 35
  br i1 %55, label %68, label %56

56:                                               ; preds = %50
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 0
  %59 = load i8, ptr %58, align 1, !tbaa !22
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 13
  br i1 %61, label %68, label %62

62:                                               ; preds = %56
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 0
  %65 = load i8, ptr %64, align 1, !tbaa !22
  %66 = sext i8 %65 to i32
  %67 = icmp eq i32 %66, 10
  br label %68

68:                                               ; preds = %62, %56, %50
  %69 = phi i1 [ true, %56 ], [ true, %50 ], [ %67, %62 ]
  br i1 %69, label %20, label %70, !llvm.loop !23

70:                                               ; preds = %68
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef %71, i32 noundef %72, i32 noundef %73)
  br label %74

74:                                               ; preds = %154, %70
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 3
  %77 = getelementptr inbounds [96 x i8], ptr %76, i64 0, i64 0
  %78 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 4
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = sext i32 %79 to i64
  %81 = call i32 @strncmp(ptr noundef %75, ptr noundef %77, i64 noundef %80) #7
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %157

83:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 4
  %86 = load i32, ptr %85, align 8, !tbaa !24
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %84, i64 %87
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %89 unwind label %104

89:                                               ; preds = %83
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  %90 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 2
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef @.str.2)
          to label %91 unwind label %108

91:                                               ; preds = %89
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %92 unwind label %112

92:                                               ; preds = %91
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %93 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %94 = invoke noalias ptr @fopen(ptr noundef %93, ptr noundef @.str.1)
          to label %95 unwind label %117

95:                                               ; preds = %92
  store ptr %94, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %121, label %98

98:                                               ; preds = %95
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  %100 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %99)
          to label %101 unwind label %117

101:                                              ; preds = %98
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser5closeEv(ptr noundef nonnull align 8 dereferenceable(164) %19)
          to label %102 unwind label %117

102:                                              ; preds = %101
  %103 = call ptr @__cxa_allocate_exception(i64 4) #6
  store i32 -1, ptr %103, align 16, !tbaa !9
  invoke void @__cxa_throw(ptr %103, ptr @_ZTIi, ptr null) #8
          to label %166 unwind label %117

104:                                              ; preds = %83
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %14, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %156

108:                                              ; preds = %89
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %14, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %15, align 4
  br label %116

112:                                              ; preds = %91
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %14, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %155

117:                                              ; preds = %145, %141, %139, %136, %131, %127, %121, %102, %101, %98, %92
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %14, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %155

121:                                              ; preds = %95
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = invoke ptr @fgets(ptr noundef %122, i32 noundef 1023, ptr noundef %123)
          to label %125 unwind label %117

125:                                              ; preds = %121
  store ptr %124, ptr %10, align 8, !tbaa !5
  %126 = icmp ne ptr %124, null
  br i1 %126, label %127, label %136

127:                                              ; preds = %125
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef %128, i32 noundef %129, i32 noundef %130)
          to label %131 unwind label %117

131:                                              ; preds = %127
  %132 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 1
  invoke void @_ZNSt6vectorIP8_IO_FILESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %133 unwind label %117

133:                                              ; preds = %131
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.pgo::VolumetricMeshes::VolumetricMeshParser", ptr %19, i32 0, i32 0
  store ptr %134, ptr %135, align 8, !tbaa !11
  br label %151

136:                                              ; preds = %125
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = invoke i32 @fclose(ptr noundef %137)
          to label %139 unwind label %117

139:                                              ; preds = %136
  %140 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %141 unwind label %117

141:                                              ; preds = %139
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = invoke noundef ptr @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser11getNextLineEPcii(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef %142, i32 noundef %143, i32 noundef 1)
          to label %145 unwind label %117

145:                                              ; preds = %141
  store ptr %144, ptr %10, align 8, !tbaa !5
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef %146, i32 noundef %147, i32 noundef %148)
          to label %149 unwind label %117

149:                                              ; preds = %145
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %150, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %152

151:                                              ; preds = %133
  store i32 0, ptr %11, align 4
  br label %152

152:                                              ; preds = %151, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  %153 = load i32, ptr %11, align 4
  switch i32 %153, label %159 [
    i32 0, label %154
  ]

154:                                              ; preds = %152
  br label %74, !llvm.loop !25

155:                                              ; preds = %117, %116
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %156

156:                                              ; preds = %155, %104
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %161

157:                                              ; preds = %74
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %158, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %159

159:                                              ; preds = %157, %152, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %160 = load ptr, ptr %5, align 8
  ret ptr %160

161:                                              ; preds = %156
  %162 = load ptr, ptr %14, align 8
  %163 = load i32, ptr %15, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165

166:                                              ; preds = %102
  unreachable
}

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

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

declare i32 @printf(ptr noundef, ...) #3

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

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 willreturn memory(read) "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN3pgo16VolumetricMeshes20VolumetricMeshParserE", !6, i64 0, !13, i64 8, !17, i64 32, !7, i64 64, !10, i64 160}
!13 = !{!"_ZTSSt6vectorIP8_IO_FILESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIP8_IO_FILESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP8_IO_FILESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP8_IO_FILESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !21}
!24 = !{!12, !10, i64 160}
!25 = distinct !{!25, !21}


; 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.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.std::allocator.0" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZTIi = external constant ptr
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP8_IO_FILESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(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.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP8_IO_FILESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser5closeEv(ptr noundef nonnull align 8 dereferenceable(164)) local_unnamed_addr #2 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser11getNextLineEPcii(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %4
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = tail call ptr @fgets(ptr noundef %1, i32 noundef 1023, ptr noundef %11)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %.lr.ph, label %.critedge45

.lr.ph:                                           ; preds = %.backedge, %16
  %14 = tail call noundef i64 @_ZNKSt6vectorIP8_IO_FILESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %16, label %.critedge

16:                                               ; preds = %.lr.ph
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = tail call i32 @fclose(ptr noundef %17)
  tail call void @_ZNSt6vectorIP8_IO_FILESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %19 = tail call noundef i64 @_ZNKSt6vectorIP8_IO_FILESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %20 = add i64 %19, -1
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8_IO_FILESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %20) #6
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  store ptr %22, ptr %0, align 8, !tbaa !5
  %23 = tail call ptr @fgets(ptr noundef %1, i32 noundef 1023, ptr noundef %22)
  %24 = icmp eq ptr %23, null
  br i1 %24, label %.lr.ph, label %.critedge45, !llvm.loop !19

.critedge45:                                      ; preds = %16, %.backedge
  %.lcssa = phi ptr [ %12, %.backedge ], [ %23, %16 ]
  %25 = load i8, ptr %1, align 1, !tbaa !21
  switch i8 %25, label %26 [
    i8 35, label %.backedge.backedge
    i8 13, label %.backedge.backedge
    i8 10, label %.backedge.backedge
  ]

.backedge.backedge:                               ; preds = %.critedge45, %.critedge45, %.critedge45
  br label %.backedge

26:                                               ; preds = %.critedge45
  tail call void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3)
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  %28 = getelementptr inbounds i8, ptr %0, i64 160
  %29 = load i32, ptr %28, align 8, !tbaa !22
  %30 = sext i32 %29 to i64
  %31 = tail call i32 @strncmp(ptr noundef nonnull %1, ptr noundef nonnull %27, i64 noundef %30) #7
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %.lr.ph49, label %.critedge

.lr.ph49:                                         ; preds = %26
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  br label %39

34:                                               ; preds = %72
  %35 = load i32, ptr %28, align 8, !tbaa !22
  %36 = sext i32 %35 to i64
  %37 = call i32 @strncmp(ptr noundef nonnull %1, ptr noundef nonnull %27, i64 noundef %36) #7
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %.critedge, !llvm.loop !23

39:                                               ; preds = %.lr.ph49, %34
  %40 = phi i64 [ %30, %.lr.ph49 ], [ %36, %34 ]
  %.03348 = phi ptr [ undef, %.lr.ph49 ], [ %.134, %34 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %41 = getelementptr inbounds i8, ptr %1, i64 %40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %41, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %42 unwind label %52

42:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.2)
          to label %43 unwind label %54

43:                                               ; preds = %42
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %44 unwind label %56

44:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %45 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %46 = call noalias ptr @fopen(ptr noundef %45, ptr noundef nonnull @.str.1)
  store ptr %46, ptr %9, align 8, !tbaa !18
  %.not = icmp eq ptr %46, null
  br i1 %.not, label %47, label %60

47:                                               ; preds = %44
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %48)
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser5closeEv(ptr noundef nonnull align 8 dereferenceable(164) %0)
          to label %50 unwind label %.loopexit.split-lp

50:                                               ; preds = %47
  %51 = call ptr @__cxa_allocate_exception(i64 4) #6
  store i32 -1, ptr %51, align 16, !tbaa !24
  invoke void @__cxa_throw(ptr nonnull %51, ptr nonnull @_ZTIi, ptr null) #8
          to label %75 unwind label %.loopexit.split-lp

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %74

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

56:                                               ; preds = %43
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %73

.loopexit:                                        ; preds = %62, %63, %66, %71
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %59

.loopexit.split-lp:                               ; preds = %47, %50
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %73

60:                                               ; preds = %44
  %61 = call ptr @fgets(ptr noundef nonnull %1, i32 noundef 1023, ptr noundef nonnull %46)
  %.not41.not = icmp eq ptr %61, null
  br i1 %.not41.not, label %66, label %62

62:                                               ; preds = %60
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3)
          to label %63 unwind label %.loopexit

63:                                               ; preds = %62
  invoke void @_ZNSt6vectorIP8_IO_FILESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %64 unwind label %.loopexit

64:                                               ; preds = %63
  %65 = load ptr, ptr %9, align 8, !tbaa !18
  store ptr %65, ptr %0, align 8, !tbaa !5
  br label %72

66:                                               ; preds = %60
  %67 = load ptr, ptr %9, align 8, !tbaa !18
  %68 = call i32 @fclose(ptr noundef %67)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %70 = invoke noundef ptr @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser11getNextLineEPcii(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef nonnull %1, i32 noundef %2, i32 noundef 1)
          to label %71 unwind label %.loopexit

71:                                               ; preds = %66
  invoke void @_ZN3pgo16VolumetricMeshes20VolumetricMeshParser12beautifyLineEPcii(ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3)
          to label %72 unwind label %.loopexit

72:                                               ; preds = %71, %64
  %.134 = phi ptr [ %.03348, %64 ], [ %70, %71 ]
  %.132 = phi ptr [ %61, %64 ], [ %70, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br i1 %.not41.not, label %.critedge, label %34, !llvm.loop !23

73:                                               ; preds = %59, %58
  %.pn42 = phi { ptr, i32 } [ %lpad.phi, %59 ], [ %.pn, %58 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %74

74:                                               ; preds = %73, %52
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %73 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn42.pn

.critedge:                                        ; preds = %.lr.ph, %72, %34, %26
  %.235 = phi ptr [ %.lcssa, %26 ], [ %.134, %72 ], [ %.132, %34 ], [ null, %.lr.ph ]
  ret ptr %.235

75:                                               ; preds = %50
  unreachable
}

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nofree 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN3pgo16VolumetricMeshes20VolumetricMeshParserE", !7, i64 0, !10, i64 8, !14, i64 32, !8, i64 64, !17, i64 160}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIP8_IO_FILESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIP8_IO_FILESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIP8_IO_FILESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIP8_IO_FILESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !8, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!8, !8, i64 0}
!22 = !{!6, !17, i64 160}
!23 = distinct !{!23, !20}
!24 = !{!17, !17, i64 0}


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