; LLVM IR from goldest-star/seawave-animation :: src/scenes/3D_graphics/01_modeling/modeling.ll (Z11create_flagff)

; 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.24", %"struct.vcl::buffer.24", %"struct.vcl::buffer.25", %"struct.vcl::buffer.31", %"struct.vcl::buffer.37" }
%"struct.vcl::buffer.24" = 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.25" = type { %"class.std::vector.26" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.31" = type { %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = 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.37" = type { %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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.vcl::buffer_stack" = type { float, float, float }
%"struct.std::array" = type { [3 x i32] }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.vcl::buffer_stack.48" = type { float, float }

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11create_flagff(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mesh") align 8 %0, float noundef %1, float noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i1, align 1
  %8 = alloca %"struct.vcl::buffer_stack", align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.vcl::buffer_stack", align 4
  %12 = alloca %"struct.vcl::buffer_stack", align 4
  %13 = alloca %"struct.std::array", align 4
  %14 = alloca %"struct.vcl::buffer.31", align 8
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [4 x %"struct.vcl::buffer_stack.48"], align 4
  store ptr %0, ptr %4, align 8
  store float %1, ptr %5, align 4, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %17 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %18 unwind label %53

18:                                               ; preds = %3
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %19 unwind label %53

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %20 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  %21 = load float, ptr %5, align 4, !tbaa !5
  %22 = fdiv float %21, 2.000000e+00
  %23 = load float, ptr %6, align 4, !tbaa !5
  %24 = fdiv float %23, 2.000000e+00
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %22, float noundef 0.000000e+00, float noundef %24)
          to label %25 unwind label %57

25:                                               ; preds = %19
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %26 unwind label %57

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  %27 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  %28 = load float, ptr %6, align 4, !tbaa !5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %28)
          to label %29 unwind label %61

29:                                               ; preds = %26
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %30 unwind label %61

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %31 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  %32 = getelementptr inbounds %"struct.std::array", ptr %13, i32 0, i32 0
  store i32 0, ptr %32, align 4, !tbaa !9
  %33 = getelementptr inbounds i32, ptr %32, i64 1
  store i32 1, ptr %33, align 4, !tbaa !9
  %34 = getelementptr inbounds i32, ptr %32, i64 2
  store i32 2, ptr %34, align 4, !tbaa !9
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %35 unwind label %65

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef -5.000000e-01, float noundef -5.000000e-01)
          to label %36 unwind label %69

36:                                               ; preds = %35
  %37 = getelementptr inbounds %"struct.vcl::buffer_stack.48", ptr %16, i64 1
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %37, float noundef -5.000000e-01, float noundef 5.000000e-01)
          to label %38 unwind label %69

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"struct.vcl::buffer_stack.48", ptr %16, i64 2
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %39, float noundef 5.000000e-01, float noundef -5.000000e-01)
          to label %40 unwind label %69

40:                                               ; preds = %38
  %41 = getelementptr inbounds %"struct.vcl::buffer_stack.48", ptr %16, i64 3
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %41, float noundef 5.000000e-01, float noundef 5.000000e-01)
          to label %42 unwind label %69

42:                                               ; preds = %40
  %43 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %43, align 8, !tbaa !11
  %44 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 4, ptr %44, align 8, !tbaa !15
  %45 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %48 = load i64, ptr %47, align 8
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEC2ESt16initializer_listIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr %46, i64 %48)
          to label %49 unwind label %69

49:                                               ; preds = %42
  %50 = getelementptr inbounds %"struct.vcl::mesh", ptr %0, i32 0, i32 3
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  store i1 true, ptr %7, align 1
  %52 = load i1, ptr %7, align 1
  br i1 %52, label %74, label %73

53:                                               ; preds = %18, %3
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  br label %75

57:                                               ; preds = %25, %19
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  br label %75

61:                                               ; preds = %29, %26
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  br label %75

65:                                               ; preds = %30
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  br label %75

69:                                               ; preds = %42, %40, %38, %36, %35
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %75

73:                                               ; preds = %49
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #5
  br label %74

74:                                               ; preds = %73, %49
  ret void

75:                                               ; preds = %69, %65, %61, %57, %53
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #5
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %9, align 8
  %78 = load i32, ptr %10, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

declare void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3

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

declare void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vcl6bufferISt5arrayIjLm3EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #2 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)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = !{!"float", !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, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIN3vcl12buffer_stackIfLm2EEEE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}


; 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.24", %"struct.vcl::buffer.24", %"struct.vcl::buffer.25", %"struct.vcl::buffer.31", %"struct.vcl::buffer.37" }
%"struct.vcl::buffer.24" = 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.25" = type { %"class.std::vector.26" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.31" = type { %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = 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.37" = type { %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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.vcl::buffer_stack" = type { float, float, float }
%"struct.std::array" = type { [3 x i32] }
%"struct.vcl::buffer_stack.48" = type { float, float }

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11create_flagff(ptr dead_on_unwind noalias nonnull writable sret(%"struct.vcl::mesh") align 8 %0, float noundef %1, float noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.vcl::buffer_stack", align 4
  %5 = alloca %"struct.vcl::buffer_stack", align 4
  %6 = alloca %"struct.vcl::buffer_stack", align 4
  %7 = alloca %"struct.std::array", align 4
  %8 = alloca %"struct.vcl::buffer.31", align 8
  %9 = alloca [4 x %"struct.vcl::buffer_stack.48"], align 4
  tail call void @_ZN3vcl4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %10 unwind label %32

10:                                               ; preds = %3
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %11 unwind label %32

11:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %12 = fmul float %1, 5.000000e-01
  %13 = fmul float %2, 5.000000e-01
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %12, float noundef 0.000000e+00, float noundef %13)
          to label %14 unwind label %34

14:                                               ; preds = %11
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %15 unwind label %34

15:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  invoke void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %2)
          to label %16 unwind label %36

16:                                               ; preds = %15
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %17 unwind label %36

17:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 1, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 2, ptr %20, align 4, !tbaa !5
  invoke void @_ZN3vcl6bufferISt5arrayIjLm3EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %21 unwind label %38

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef -5.000000e-01, float noundef -5.000000e-01)
          to label %22 unwind label %40

22:                                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef -5.000000e-01, float noundef 5.000000e-01)
          to label %24 unwind label %40

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %9, i64 16
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef 5.000000e-01, float noundef -5.000000e-01)
          to label %26 unwind label %40

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %9, i64 24
  invoke void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8) %27, float noundef 5.000000e-01, float noundef 5.000000e-01)
          to label %28 unwind label %40

28:                                               ; preds = %26
  invoke void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEC2ESt16initializer_listIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nonnull %9, i64 4)
          to label %29 unwind label %40

29:                                               ; preds = %28
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  ret void

32:                                               ; preds = %10, %3
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  br label %42

34:                                               ; preds = %14, %11
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  br label %42

36:                                               ; preds = %16, %15
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br label %42

38:                                               ; preds = %17
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  br label %42

40:                                               ; preds = %28, %26, %24, %22, %21
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %42

42:                                               ; preds = %40, %38, %36, %34, %32
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ]
  call void @_ZN3vcl4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #5
  resume { ptr, i32 } %.pn
}

declare void @_ZN3vcl12buffer_stackIfLm3EEC1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3

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

declare void @_ZN3vcl12buffer_stackIfLm2EEC1Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3

; 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 #2 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3vcl6bufferINS_12buffer_stackIfLm2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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


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