; LLVM IR from l1mey112/yr11-physics-applied :: sokol (sokol)

; 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._sg_state_t = type { i8, %struct.sg_desc, i32, %struct.sg_context, %struct.sg_pass, %struct.sg_pipeline, i8, i8, i8, i32, %struct._sg_pools_t, i32, %struct.sg_features, %struct.sg_limits, [64 x %struct.sg_pixelformat_info], %struct._sg_gl_backend_t, %struct._sg_commit_listeners_t }
%struct.sg_desc = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, %struct.sg_allocator, %struct.sg_logger, %struct.sg_context_desc, i32 }
%struct.sg_allocator = type { ptr, ptr, ptr }
%struct.sg_logger = type { ptr, ptr }
%struct.sg_context_desc = type { i32, i32, i32, %struct.sg_gl_context_desc, %struct.sg_metal_context_desc, %struct.sg_d3d11_context_desc, %struct.sg_wgpu_context_desc }
%struct.sg_gl_context_desc = type { i8 }
%struct.sg_metal_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_d3d11_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_wgpu_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_context = type { i32 }
%struct.sg_pass = type { i32 }
%struct.sg_pipeline = type { i32 }
%struct._sg_pools_t = type { %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._sg_pool_t = type { i32, i32, ptr, ptr }
%struct.sg_features = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.sg_limits = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.sg_pixelformat_info = type { i8, i8, i8, i8, i8, i8 }
%struct._sg_gl_backend_t = type { i8, i8, i8, i32, i32, ptr, ptr, %struct.sg_pass, %struct._sg_gl_state_cache_t, i8, i32, i32 }
%struct._sg_gl_state_cache_t = type { %struct.sg_depth_state, %struct.sg_stencil_state, %struct.sg_blend_state, [4 x i32], i32, i32, i8, i32, %struct.sg_color, i8, [16 x %struct._sg_gl_cache_attr_t], i32, i32, i32, i32, i32, [12 x %struct._sg_gl_texture_bind_slot], %struct._sg_gl_texture_bind_slot, i32, i32, i32, i32, ptr, %struct.sg_pipeline }
%struct.sg_depth_state = type { i32, i32, i8, float, float, float }
%struct.sg_stencil_state = type { i8, %struct.sg_stencil_face_state, %struct.sg_stencil_face_state, i8, i8, i8 }
%struct.sg_stencil_face_state = type { i32, i32, i32, i32 }
%struct.sg_blend_state = type { i8, i32, i32, i32, i32, i32, i32 }
%struct.sg_color = type { float, float, float, float }
%struct._sg_gl_cache_attr_t = type { %struct._sg_gl_attr_t, i32 }
%struct._sg_gl_attr_t = type { i8, i8, i8, i8, i8, i32, i32 }
%struct._sg_gl_texture_bind_slot = type { i32, i32 }
%struct._sg_commit_listeners_t = type { i32, i32, ptr }
%struct.sg_buffer = type { i32 }
%struct._sg_gl_buffer_t = type { %struct._sg_slot_t, %struct._sg_buffer_common_t, %struct.anon.0 }
%struct._sg_slot_t = type { i32, i32, i32 }
%struct._sg_buffer_common_t = type { i32, i32, i8, i32, i32, i32, i32, i32, i32 }
%struct.anon.0 = type { [2 x i32], i8 }

@.str.16 = external hidden unnamed_addr constant [81 x i8], align 1
@_sg = external hidden global %struct._sg_state_t, align 8
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.sg_query_buffer_will_overflow = external hidden unnamed_addr constant [55 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @_sg_lookup_buffer(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @_sg_roundup(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @sg_query_buffer_will_overflow(i32 %0, i64 noundef %1) #2 {
  %3 = alloca %struct.sg_buffer, align 4
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds %struct.sg_buffer, ptr %3, i32 0, i32 0
  store i32 %0, ptr %8, align 4
  store i64 %1, ptr %4, align 8, !tbaa !5
  %9 = load i8, ptr @_sg, align 8, !tbaa !9, !range !39, !noundef !40
  %10 = trunc i8 %9 to i1
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  br label %13

12:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.16, i32 noundef 16714, ptr noundef @__PRETTY_FUNCTION__.sg_query_buffer_will_overflow) #3
  unreachable

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %14 = getelementptr inbounds %struct.sg_buffer, ptr %3, i32 0, i32 0
  %15 = load i32, ptr %14, align 4, !tbaa !41
  %16 = call ptr @_sg_lookup_buffer(ptr noundef getelementptr inbounds (%struct._sg_state_t, ptr @_sg, i32 0, i32 10), i32 noundef %15)
  store ptr %16, ptr %5, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !44
  %17 = load ptr, ptr %5, align 8, !tbaa !43
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %44

19:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %20 = load ptr, ptr %5, align 8, !tbaa !43
  %21 = getelementptr inbounds %struct._sg_gl_buffer_t, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds %struct._sg_buffer_common_t, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !45
  store i32 %23, ptr %7, align 4, !tbaa !50
  %24 = load ptr, ptr %5, align 8, !tbaa !43
  %25 = getelementptr inbounds %struct._sg_gl_buffer_t, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct._sg_buffer_common_t, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %26, align 4, !tbaa !51
  %28 = load i32, ptr getelementptr inbounds (%struct._sg_state_t, ptr @_sg, i32 0, i32 2), align 8, !tbaa !52
  %29 = icmp ne i32 %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %19
  store i32 0, ptr %7, align 4, !tbaa !50
  br label %31

31:                                               ; preds = %30, %19
  %32 = load i32, ptr %7, align 4, !tbaa !50
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %34 = trunc i64 %33 to i32
  %35 = call i32 @_sg_roundup(i32 noundef %34, i32 noundef 4)
  %36 = add nsw i32 %32, %35
  %37 = load ptr, ptr %5, align 8, !tbaa !43
  %38 = getelementptr inbounds %struct._sg_gl_buffer_t, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %struct._sg_buffer_common_t, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 4, !tbaa !53
  %41 = icmp sgt i32 %36, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %31
  store i8 1, ptr %6, align 1, !tbaa !44
  br label %43

43:                                               ; preds = %42, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %44

44:                                               ; preds = %43, %13
  %45 = load i8, ptr %6, align 1, !tbaa !44, !range !39, !noundef !40
  %46 = trunc i8 %45 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i1 %46
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }
attributes #4 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !12, i64 8, !13, i64 288, !22, i64 292, !23, i64 296, !24, i64 300, !11, i64 304, !11, i64 305, !11, i64 306, !13, i64 308, !25, i64 312, !13, i64 504, !27, i64 508, !28, i64 520, !7, i64 548, !29, i64 936, !38, i64 1616}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!"sg_desc", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !11, i64 44, !14, i64 48, !16, i64 72, !17, i64 88, !13, i64 272}
!13 = !{!"int", !7, i64 0}
!14 = !{!"sg_allocator", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"sg_logger", !15, i64 0, !15, i64 8}
!17 = !{!"sg_context_desc", !13, i64 0, !13, i64 4, !13, i64 8, !18, i64 12, !19, i64 16, !20, i64 64, !21, i64 120}
!18 = !{!"sg_gl_context_desc", !11, i64 0}
!19 = !{!"sg_metal_context_desc", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!20 = !{!"sg_d3d11_context_desc", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48}
!21 = !{!"sg_wgpu_context_desc", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56}
!22 = !{!"sg_context", !13, i64 0}
!23 = !{!"sg_pass", !13, i64 0}
!24 = !{!"sg_pipeline", !13, i64 0}
!25 = !{!"", !26, i64 0, !26, i64 24, !26, i64 48, !26, i64 72, !26, i64 96, !26, i64 120, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!26 = !{!"", !13, i64 0, !13, i64 4, !15, i64 8, !15, i64 16}
!27 = !{!"sg_features", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8}
!28 = !{!"sg_limits", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!29 = !{!"", !11, i64 0, !11, i64 1, !11, i64 2, !13, i64 4, !13, i64 8, !15, i64 16, !15, i64 24, !23, i64 32, !30, i64 40, !11, i64 664, !13, i64 668, !13, i64 672}
!30 = !{!"", !31, i64 0, !33, i64 24, !35, i64 64, !7, i64 92, !13, i64 108, !13, i64 112, !11, i64 116, !13, i64 120, !36, i64 124, !11, i64 140, !7, i64 144, !13, i64 464, !13, i64 468, !13, i64 472, !13, i64 476, !13, i64 480, !7, i64 484, !37, i64 580, !13, i64 588, !13, i64 592, !13, i64 596, !13, i64 600, !15, i64 608, !24, i64 616}
!31 = !{!"sg_depth_state", !13, i64 0, !13, i64 4, !11, i64 8, !32, i64 12, !32, i64 16, !32, i64 20}
!32 = !{!"float", !7, i64 0}
!33 = !{!"sg_stencil_state", !11, i64 0, !34, i64 4, !34, i64 20, !7, i64 36, !7, i64 37, !7, i64 38}
!34 = !{!"sg_stencil_face_state", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!35 = !{!"sg_blend_state", !11, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!36 = !{!"sg_color", !32, i64 0, !32, i64 4, !32, i64 8, !32, i64 12}
!37 = !{!"", !13, i64 0, !13, i64 4}
!38 = !{!"", !13, i64 0, !13, i64 4, !15, i64 8}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!42, !13, i64 0}
!42 = !{!"sg_buffer", !13, i64 0}
!43 = !{!15, !15, i64 0}
!44 = !{!11, !11, i64 0}
!45 = !{!46, !13, i64 16}
!46 = !{!"", !47, i64 0, !48, i64 12, !49, i64 48}
!47 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!48 = !{!"", !13, i64 0, !13, i64 4, !11, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!49 = !{!"", !7, i64 0, !11, i64 8}
!50 = !{!13, !13, i64 0}
!51 = !{!46, !13, i64 36}
!52 = !{!10, !13, i64 288}
!53 = !{!46, !13, i64 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._sg_state_t = type { i8, %struct.sg_desc, i32, %struct.sg_context, %struct.sg_pass, %struct.sg_pipeline, i8, i8, i8, i32, %struct._sg_pools_t, i32, %struct.sg_features, %struct.sg_limits, [64 x %struct.sg_pixelformat_info], %struct._sg_gl_backend_t, %struct._sg_commit_listeners_t }
%struct.sg_desc = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, %struct.sg_allocator, %struct.sg_logger, %struct.sg_context_desc, i32 }
%struct.sg_allocator = type { ptr, ptr, ptr }
%struct.sg_logger = type { ptr, ptr }
%struct.sg_context_desc = type { i32, i32, i32, %struct.sg_gl_context_desc, %struct.sg_metal_context_desc, %struct.sg_d3d11_context_desc, %struct.sg_wgpu_context_desc }
%struct.sg_gl_context_desc = type { i8 }
%struct.sg_metal_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_d3d11_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_wgpu_context_desc = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sg_context = type { i32 }
%struct.sg_pass = type { i32 }
%struct.sg_pipeline = type { i32 }
%struct._sg_pools_t = type { %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, %struct._sg_pool_t, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._sg_pool_t = type { i32, i32, ptr, ptr }
%struct.sg_features = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.sg_limits = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.sg_pixelformat_info = type { i8, i8, i8, i8, i8, i8 }
%struct._sg_gl_backend_t = type { i8, i8, i8, i32, i32, ptr, ptr, %struct.sg_pass, %struct._sg_gl_state_cache_t, i8, i32, i32 }
%struct._sg_gl_state_cache_t = type { %struct.sg_depth_state, %struct.sg_stencil_state, %struct.sg_blend_state, [4 x i32], i32, i32, i8, i32, %struct.sg_color, i8, [16 x %struct._sg_gl_cache_attr_t], i32, i32, i32, i32, i32, [12 x %struct._sg_gl_texture_bind_slot], %struct._sg_gl_texture_bind_slot, i32, i32, i32, i32, ptr, %struct.sg_pipeline }
%struct.sg_depth_state = type { i32, i32, i8, float, float, float }
%struct.sg_stencil_state = type { i8, %struct.sg_stencil_face_state, %struct.sg_stencil_face_state, i8, i8, i8 }
%struct.sg_stencil_face_state = type { i32, i32, i32, i32 }
%struct.sg_blend_state = type { i8, i32, i32, i32, i32, i32, i32 }
%struct.sg_color = type { float, float, float, float }
%struct._sg_gl_cache_attr_t = type { %struct._sg_gl_attr_t, i32 }
%struct._sg_gl_attr_t = type { i8, i8, i8, i8, i8, i32, i32 }
%struct._sg_gl_texture_bind_slot = type { i32, i32 }
%struct._sg_commit_listeners_t = type { i32, i32, ptr }

@.str.16 = external hidden unnamed_addr constant [81 x i8], align 1
@_sg = external hidden global %struct._sg_state_t, align 8
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.sg_query_buffer_will_overflow = external hidden unnamed_addr constant [55 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @_sg_lookup_buffer(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @_sg_roundup(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @sg_query_buffer_will_overflow(i32 %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = load i8, ptr @_sg, align 8, !tbaa !5, !range !37, !noundef !38
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %6, label %5

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.16, i32 noundef 16714, ptr noundef nonnull @__PRETTY_FUNCTION__.sg_query_buffer_will_overflow) #2
  unreachable

6:                                                ; preds = %2
  %7 = tail call ptr @_sg_lookup_buffer(ptr noundef nonnull getelementptr inbounds (i8, ptr @_sg, i64 312), i32 noundef %0)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %20, label %8

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %7, i64 12
  %10 = getelementptr inbounds i8, ptr %7, i64 16
  %11 = load i32, ptr %10, align 4, !tbaa !39
  %12 = getelementptr inbounds i8, ptr %7, i64 36
  %13 = load i32, ptr %12, align 4, !tbaa !44
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @_sg, i64 288), align 8, !tbaa !45
  %.not7 = icmp eq i32 %13, %14
  %spec.store.select = select i1 %.not7, i32 %11, i32 0
  %15 = trunc i64 %1 to i32
  %16 = tail call i32 @_sg_roundup(i32 noundef %15, i32 noundef 4)
  %17 = add nsw i32 %spec.store.select, %16
  %18 = load i32, ptr %9, align 4, !tbaa !46
  %19 = icmp sgt i32 %17, %18
  br label %20

20:                                               ; preds = %8, %6
  %.1 = phi i1 [ %19, %8 ], [ false, %6 ]
  ret i1 %.1
}

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !11, i64 288, !20, i64 292, !21, i64 296, !22, i64 300, !7, i64 304, !7, i64 305, !7, i64 306, !11, i64 308, !23, i64 312, !11, i64 504, !25, i64 508, !26, i64 520, !8, i64 548, !27, i64 936, !36, i64 1616}
!7 = !{!"_Bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"sg_desc", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !7, i64 44, !12, i64 48, !14, i64 72, !15, i64 88, !11, i64 272}
!11 = !{!"int", !8, i64 0}
!12 = !{!"sg_allocator", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"sg_logger", !13, i64 0, !13, i64 8}
!15 = !{!"sg_context_desc", !11, i64 0, !11, i64 4, !11, i64 8, !16, i64 12, !17, i64 16, !18, i64 64, !19, i64 120}
!16 = !{!"sg_gl_context_desc", !7, i64 0}
!17 = !{!"sg_metal_context_desc", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!18 = !{!"sg_d3d11_context_desc", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!19 = !{!"sg_wgpu_context_desc", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!20 = !{!"sg_context", !11, i64 0}
!21 = !{!"sg_pass", !11, i64 0}
!22 = !{!"sg_pipeline", !11, i64 0}
!23 = !{!"", !24, i64 0, !24, i64 24, !24, i64 48, !24, i64 72, !24, i64 96, !24, i64 120, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!24 = !{!"", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 16}
!25 = !{!"sg_features", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8}
!26 = !{!"sg_limits", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!27 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !11, i64 4, !11, i64 8, !13, i64 16, !13, i64 24, !21, i64 32, !28, i64 40, !7, i64 664, !11, i64 668, !11, i64 672}
!28 = !{!"", !29, i64 0, !31, i64 24, !33, i64 64, !8, i64 92, !11, i64 108, !11, i64 112, !7, i64 116, !11, i64 120, !34, i64 124, !7, i64 140, !8, i64 144, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !8, i64 484, !35, i64 580, !11, i64 588, !11, i64 592, !11, i64 596, !11, i64 600, !13, i64 608, !22, i64 616}
!29 = !{!"sg_depth_state", !11, i64 0, !11, i64 4, !7, i64 8, !30, i64 12, !30, i64 16, !30, i64 20}
!30 = !{!"float", !8, i64 0}
!31 = !{!"sg_stencil_state", !7, i64 0, !32, i64 4, !32, i64 20, !8, i64 36, !8, i64 37, !8, i64 38}
!32 = !{!"sg_stencil_face_state", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!33 = !{!"sg_blend_state", !7, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!34 = !{!"sg_color", !30, i64 0, !30, i64 4, !30, i64 8, !30, i64 12}
!35 = !{!"", !11, i64 0, !11, i64 4}
!36 = !{!"", !11, i64 0, !11, i64 4, !13, i64 8}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !11, i64 16}
!40 = !{!"", !41, i64 0, !42, i64 12, !43, i64 48}
!41 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!42 = !{!"", !11, i64 0, !11, i64 4, !7, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!43 = !{!"", !8, i64 0, !7, i64 8}
!44 = !{!40, !11, i64 36}
!45 = !{!6, !11, i64 288}
!46 = !{!40, !11, i64 12}


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