; LLVM IR from goldest-star/seawave-animation :: src/vcl/shape/mesh/mesh_structure/mesh.ll (ZN3vcl4mesh9push_backERKS0_)

; 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.vcl::mesh" = type { %"struct.vcl::buffer", %"struct.vcl::buffer", %"struct.vcl::buffer.0", %"struct.vcl::buffer.6", %"struct.vcl::buffer.12" }
%"struct.vcl::buffer" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.12" = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [3 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.vcl::mesh", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::array", align 4
  %15 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  call void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120) %16)
  call void @llvm.lifetime.start.p0(i64 120, ptr %5) #6
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3vcl4meshC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(120) %17)
  invoke void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120) %5)
          to label %18 unwind label %30

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %19 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 0
  %20 = invoke noundef i64 @_ZNK3vcl6bufferINS_12buffer_stackIfLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %21 unwind label %34

21:                                               ; preds = %18
  store i64 %20, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %22 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 0
  %23 = invoke noundef i64 @_ZNK3vcl6bufferINS_12buffer_stackIfLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %24 unwind label %38

24:                                               ; preds = %21
  store i64 %23, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %67, %24
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %42, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %74

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  br label %120

34:                                               ; preds = %18
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  br label %119

38:                                               ; preds = %21
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %7, align 4
  br label %118

42:                                               ; preds = %25
  %43 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 0
  %45 = load i64, ptr %10, align 8, !tbaa !9
  %46 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %45)
          to label %47 unwind label %70

47:                                               ; preds = %42
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(12) %46)
          to label %48 unwind label %70

48:                                               ; preds = %47
  %49 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 1
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %51)
          to label %53 unwind label %70

53:                                               ; preds = %48
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(12) %52)
          to label %54 unwind label %70

54:                                               ; preds = %53
  %55 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 2
  %56 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 2
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm4EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %57)
          to label %59 unwind label %70

59:                                               ; preds = %54
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm4EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 4 dereferenceable(16) %58)
          to label %60 unwind label %70

60:                                               ; preds = %59
  %61 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 3
  %62 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 3
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63)
          to label %65 unwind label %70

65:                                               ; preds = %60
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 4 dereferenceable(8) %64)
          to label %66 unwind label %70

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load i64, ptr %10, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %10, align 8, !tbaa !9
  br label %25, !llvm.loop !11

70:                                               ; preds = %65, %60, %59, %54, %53, %48, %47, %42
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %6, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %118

74:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %75 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 4
  %76 = invoke noundef i64 @_ZNK3vcl6bufferISt5arrayIjLm3EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
          to label %77 unwind label %83

77:                                               ; preds = %74
  store i64 %76, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %113, %77
  %79 = load i64, ptr %12, align 8, !tbaa !9
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = icmp ult i64 %79, %80
  br i1 %81, label %87, label %82

82:                                               ; preds = %78
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %116

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  br label %117

87:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  %88 = getelementptr inbounds %"struct.vcl::mesh", ptr %5, i32 0, i32 4
  %89 = load i64, ptr %12, align 8, !tbaa !9
  %90 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %89)
          to label %91 unwind label %96

91:                                               ; preds = %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %90, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %107, %91
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = icmp ult i64 %93, 3
  br i1 %94, label %100, label %95

95:                                               ; preds = %92
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %110

96:                                               ; preds = %110, %87
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %117

100:                                              ; preds = %92
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = trunc i64 %101 to i32
  %103 = load i64, ptr %15, align 8, !tbaa !9
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %14, i64 noundef %103) #6
  %105 = load i32, ptr %104, align 4, !tbaa !15
  %106 = add i32 %105, %102
  store i32 %106, ptr %104, align 4, !tbaa !15
  br label %107

107:                                              ; preds = %100
  %108 = load i64, ptr %15, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %15, align 8, !tbaa !9
  br label %92, !llvm.loop !17

110:                                              ; preds = %95
  %111 = getelementptr inbounds %"struct.vcl::mesh", ptr %16, i32 0, i32 4
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %112 unwind label %96

112:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  br label %113

113:                                              ; preds = %112
  %114 = load i64, ptr %12, align 8, !tbaa !9
  %115 = add i64 %114, 1
  store i64 %115, ptr %12, align 8, !tbaa !9
  br label %78, !llvm.loop !18

116:                                              ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %5) #6
  ret void

117:                                              ; preds = %96, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %118

118:                                              ; preds = %117, %70, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %119

119:                                              ; preds = %118, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %120

120:                                              ; preds = %119, %30
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %5) #6
  br label %121

121:                                              ; preds = %120
  %122 = load ptr, ptr %6, align 8
  %123 = load i32, ptr %7, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120)) #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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vcl4meshC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12), i64 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 12, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; 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.vcl::mesh" = type { %"struct.vcl::buffer", %"struct.vcl::buffer", %"struct.vcl::buffer.0", %"struct.vcl::buffer.6", %"struct.vcl::buffer.12" }
%"struct.vcl::buffer" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 3>, std::allocator<vcl::buffer_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 4>, std::allocator<vcl::buffer_stack<float, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::buffer_stack<float, 2>, std::allocator<vcl::buffer_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::buffer.12" = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 3>, std::allocator<std::array<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [3 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.vcl::mesh", align 8
  %4 = alloca %"struct.std::array", align 4
  tail call void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #6
  call void @_ZN3vcl4meshC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(120) %1)
  invoke void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %5 unwind label %18

5:                                                ; preds = %2
  %6 = call noundef i64 @_ZNK3vcl6bufferINS_12buffer_stackIfLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %7 = call noundef i64 @_ZNK3vcl6bufferINS_12buffer_stackIfLm3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %5
  %8 = getelementptr inbounds i8, ptr %3, i64 24
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = getelementptr inbounds i8, ptr %3, i64 48
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = getelementptr inbounds i8, ptr %3, i64 72
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  br label %20

._crit_edge:                                      ; preds = %32, %5
  %14 = getelementptr inbounds i8, ptr %3, i64 96
  %15 = call noundef i64 @_ZNK3vcl6bufferISt5arrayIjLm3EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %.not31 = icmp eq i64 %15, 0
  br i1 %.not31, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %._crit_edge
  %16 = trunc i64 %6 to i32
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  br label %36

18:                                               ; preds = %2
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %52

20:                                               ; preds = %.lr.ph, %32
  %.02025 = phi i64 [ 0, %.lr.ph ], [ %33, %32 ]
  %21 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.02025)
          to label %22 unwind label %34

22:                                               ; preds = %20
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %23 unwind label %34

23:                                               ; preds = %22
  %24 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.02025)
          to label %25 unwind label %34

25:                                               ; preds = %23
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %26 unwind label %34

26:                                               ; preds = %25
  %27 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm4EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.02025)
          to label %28 unwind label %34

28:                                               ; preds = %26
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm4EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(16) %27)
          to label %29 unwind label %34

29:                                               ; preds = %28
  %30 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.02025)
          to label %31 unwind label %34

31:                                               ; preds = %29
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %32 unwind label %34

32:                                               ; preds = %31
  %33 = add nuw i64 %.02025, 1
  %exitcond.not = icmp eq i64 %33, %7
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !5

34:                                               ; preds = %31, %29, %28, %26, %25, %23, %22, %20
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %52

._crit_edge30:                                    ; preds = %50, %._crit_edge
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #6
  ret void

36:                                               ; preds = %.lr.ph29, %50
  %.01827 = phi i64 [ 0, %.lr.ph29 ], [ %51, %50 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %37 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3vcl6bufferISt5arrayIjLm3EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.01827)
          to label %38 unwind label %48

38:                                               ; preds = %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %37, i64 12, i1 false), !tbaa.struct !7
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %4, i64 noundef 0) #6
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = add i32 %40, %16
  store i32 %41, ptr %39, align 4, !tbaa !11
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %4, i64 noundef 1) #6
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = add i32 %43, %16
  store i32 %44, ptr %42, align 4, !tbaa !11
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %4, i64 noundef 2) #6
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %47 = add i32 %46, %16
  store i32 %47, ptr %45, align 4, !tbaa !11
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %50 unwind label %48

48:                                               ; preds = %38, %36
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  br label %52

50:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %51 = add nuw i64 %.01827, 1
  %exitcond33.not = icmp eq i64 %51, %15
  br i1 %exitcond33.not, label %._crit_edge30, label %36, !llvm.loop !13

52:                                               ; preds = %34, %48, %18
  %.pn.pn = phi { ptr, i32 } [ %19, %18 ], [ %35, %34 ], [ %49, %48 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl4mesh17fill_empty_fieldsEv(ptr noundef nonnull align 8 dereferenceable(120)) 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vcl4meshC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3vcl6bufferISt5arrayIjLm3EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm3EEixEm(ptr noundef nonnull align 4 dereferenceable(12), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{i64 0, i64 12, !8}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = distinct !{!13, !6}


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