; LLVM IR from paintdream/DontStarveLuaJIT :: src/luajit/src (lj_gc)

; 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.global_State = type { ptr, i32, i32, ptr, ptr, %struct.GCState, i32, %struct.SBuf, %struct.GCstr, i8, i8, i8, i8, %struct.GCRef, %union.TValue, %union.TValue, %union.TValue, %struct.Node, %struct.GCupval, i32, i32, ptr, ptr, ptr, i32, i32, %struct.GCRef, %struct.MRef, %struct.MRef, [38 x %struct.GCRef] }
%struct.GCState = type { i32, i32, i8, i8, i8, i8, i32, %struct.GCRef, %struct.MRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, i32, i32, i32, i32 }
%struct.SBuf = type { %struct.MRef, %struct.MRef, %struct.MRef, %struct.MRef }
%struct.GCstr = type { %struct.GCRef, i8, i8, i8, i8, i32, i32 }
%union.TValue = type { i64 }
%struct.Node = type { %union.TValue, %union.TValue, %struct.MRef, %struct.MRef }
%struct.GCupval = type { %struct.GCRef, i8, i8, i8, i8, %union.anon.2, %struct.MRef, i32 }
%union.anon.2 = type { %union.TValue }
%struct.GCRef = type { i32 }
%struct.MRef = type { i32 }
%struct.lua_State = type { %union.anon.4 }
%union.anon.4 = type { %struct.anon.5, [320 x i8] }
%struct.anon.5 = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, i32 }
%struct.GChead = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, %struct.GCRef, %struct.GCRef }
%struct.GCudata = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, i32, %struct.GCRef, i32 }
%struct.GCtab = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, %struct.MRef, i32, i32 }

; Function Attrs: nounwind uwtable
define hidden i64 @lj_gc_separateudata(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.global_State, ptr %9, i32 0, i32 13
  %11 = getelementptr inbounds %struct.GCRef, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %13 = zext i32 %12 to i64
  %14 = inttoptr i64 %13 to ptr
  %15 = getelementptr inbounds %struct.lua_State, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.anon.5, ptr %15, i32 0, i32 0
  store ptr %16, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  br label %17

17:                                               ; preds = %160, %2
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.GCRef, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 4, !tbaa !22
  %21 = zext i32 %20 to i64
  %22 = inttoptr i64 %21 to ptr
  store ptr %22, ptr %7, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %161

24:                                               ; preds = %17
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.GChead, ptr %25, i32 0, i32 1
  %27 = load i8, ptr %26, align 4, !tbaa !23
  %28 = zext i8 %27 to i32
  %29 = and i32 %28, 3
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %34, label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %41

34:                                               ; preds = %31, %24
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.GCudata, ptr %35, i32 0, i32 1
  %37 = load i8, ptr %36, align 4, !tbaa !23
  %38 = zext i8 %37 to i32
  %39 = and i32 %38, 8
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %34, %31
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.GChead, ptr %42, i32 0, i32 0
  store ptr %43, ptr %6, align 8, !tbaa !5
  br label %160

44:                                               ; preds = %34
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.GCudata, ptr %45, i32 0, i32 7
  %47 = getelementptr inbounds %struct.GCRef, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !23
  %49 = zext i32 %48 to i64
  %50 = inttoptr i64 %49 to ptr
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %44
  br i1 false, label %91, label %82

53:                                               ; preds = %44
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.GCudata, ptr %54, i32 0, i32 7
  %56 = getelementptr inbounds %struct.GCRef, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !23
  %58 = zext i32 %57 to i64
  %59 = inttoptr i64 %58 to ptr
  %60 = getelementptr inbounds %struct.GCtab, ptr %59, i32 0, i32 3
  %61 = load i8, ptr %60, align 2, !tbaa !23
  %62 = zext i8 %61 to i32
  %63 = and i32 %62, 4
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %53
  br i1 false, label %91, label %82

66:                                               ; preds = %53
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.GCudata, ptr %67, i32 0, i32 7
  %69 = getelementptr inbounds %struct.GCRef, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !23
  %71 = zext i32 %70 to i64
  %72 = inttoptr i64 %71 to ptr
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.global_State, ptr %73, i32 0, i32 29
  %75 = getelementptr inbounds [38 x %struct.GCRef], ptr %74, i64 0, i64 2
  %76 = getelementptr inbounds %struct.GCRef, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !22
  %78 = zext i32 %77 to i64
  %79 = inttoptr i64 %78 to ptr
  %80 = call ptr @lj_meta_cache(ptr noundef %72, i32 noundef 2, ptr noundef %79)
  %81 = icmp ne ptr %80, null
  br i1 %81, label %91, label %82

82:                                               ; preds = %66, %65, %52
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.GChead, ptr %83, i32 0, i32 1
  %85 = load i8, ptr %84, align 4, !tbaa !23
  %86 = zext i8 %85 to i32
  %87 = or i32 %86, 8
  %88 = trunc i32 %87 to i8
  store i8 %88, ptr %84, align 4, !tbaa !23
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.GChead, ptr %89, i32 0, i32 0
  store ptr %90, ptr %6, align 8, !tbaa !5
  br label %159

91:                                               ; preds = %66, %65, %52
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.GCudata, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %93, align 4, !tbaa !23
  %95 = zext i32 %94 to i64
  %96 = add i64 24, %95
  %97 = load i64, ptr %5, align 8, !tbaa !11
  %98 = add i64 %97, %96
  store i64 %98, ptr %5, align 8, !tbaa !11
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.GChead, ptr %99, i32 0, i32 1
  %101 = load i8, ptr %100, align 4, !tbaa !23
  %102 = zext i8 %101 to i32
  %103 = or i32 %102, 8
  %104 = trunc i32 %103 to i8
  store i8 %104, ptr %100, align 4, !tbaa !23
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.GChead, ptr %106, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 8 %107, i64 4, i1 false), !tbaa.struct !24
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.global_State, ptr %108, i32 0, i32 5
  %110 = getelementptr inbounds %struct.GCState, ptr %109, i32 0, i32 12
  %111 = getelementptr inbounds %struct.GCRef, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !25
  %113 = zext i32 %112 to i64
  %114 = inttoptr i64 %113 to ptr
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %144

116:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.global_State, ptr %117, i32 0, i32 5
  %119 = getelementptr inbounds %struct.GCState, ptr %118, i32 0, i32 12
  %120 = getelementptr inbounds %struct.GCRef, ptr %119, i32 0, i32 0
  %121 = load i32, ptr %120, align 4, !tbaa !25
  %122 = zext i32 %121 to i64
  %123 = inttoptr i64 %122 to ptr
  store ptr %123, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.GChead, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds %struct.GCRef, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !23
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.GChead, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.GCRef, ptr %129, i32 0, i32 0
  store i32 %127, ptr %130, align 8, !tbaa !23
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = ptrtoint ptr %131 to i64
  %133 = trunc i64 %132 to i32
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.GChead, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.GCRef, ptr %135, i32 0, i32 0
  store i32 %133, ptr %136, align 8, !tbaa !23
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = ptrtoint ptr %137 to i64
  %139 = trunc i64 %138 to i32
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.global_State, ptr %140, i32 0, i32 5
  %142 = getelementptr inbounds %struct.GCState, ptr %141, i32 0, i32 12
  %143 = getelementptr inbounds %struct.GCRef, ptr %142, i32 0, i32 0
  store i32 %139, ptr %143, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %158

144:                                              ; preds = %91
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = ptrtoint ptr %145 to i64
  %147 = trunc i64 %146 to i32
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.GChead, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %struct.GCRef, ptr %149, i32 0, i32 0
  store i32 %147, ptr %150, align 8, !tbaa !23
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = ptrtoint ptr %151 to i64
  %153 = trunc i64 %152 to i32
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.global_State, ptr %154, i32 0, i32 5
  %156 = getelementptr inbounds %struct.GCState, ptr %155, i32 0, i32 12
  %157 = getelementptr inbounds %struct.GCRef, ptr %156, i32 0, i32 0
  store i32 %153, ptr %157, align 4, !tbaa !25
  br label %158

158:                                              ; preds = %144, %116
  br label %159

159:                                              ; preds = %158, %82
  br label %160

160:                                              ; preds = %159, %41
  br label %17, !llvm.loop !26

161:                                              ; preds = %17
  %162 = load i64, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i64 %162
}

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

declare hidden ptr @lj_meta_cache(ptr noundef, i32 noundef, ptr noundef) #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) #3

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

attributes #0 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 128}
!14 = !{!"global_State", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !15, i64 32, !10, i64 88, !18, i64 92, !19, i64 108, !7, i64 124, !7, i64 125, !7, i64 126, !7, i64 127, !16, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !20, i64 160, !21, i64 184, !10, i64 208, !10, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !16, i64 248, !17, i64 252, !17, i64 256, !7, i64 260}
!15 = !{!"GCState", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !10, i64 12, !16, i64 16, !17, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!16 = !{!"GCRef", !10, i64 0}
!17 = !{!"MRef", !10, i64 0}
!18 = !{!"SBuf", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!19 = !{!"GCstr", !16, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !10, i64 8, !10, i64 12}
!20 = !{!"Node", !7, i64 0, !7, i64 8, !17, i64 16, !17, i64 20}
!21 = !{!"GCupval", !16, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !17, i64 16, !10, i64 20}
!22 = !{!16, !10, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{i64 0, i64 4, !9}
!25 = !{!14, !10, i64 68}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: nounwind uwtable
define hidden i64 @lj_gc_separateudata(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 128
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = zext i32 %4 to i64
  %6 = inttoptr i64 %5 to ptr
  %7 = load i32, ptr %6, align 4, !tbaa !18
  %.not39 = icmp eq i32 %7, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 268
  %9 = getelementptr inbounds i8, ptr %0, i64 68
  br label %10

10:                                               ; preds = %.lr.ph, %51
  %11 = phi i32 [ %7, %.lr.ph ], [ %52, %51 ]
  %.041 = phi i64 [ 0, %.lr.ph ], [ %.1, %51 ]
  %.03040 = phi ptr [ %6, %.lr.ph ], [ %.131, %51 ]
  %.in = zext i32 %11 to i64
  %12 = inttoptr i64 %.in to ptr
  %13 = getelementptr inbounds i8, ptr %12, i64 4
  %14 = load i8, ptr %13, align 4, !tbaa !19
  %15 = zext i8 %14 to i32
  %16 = and i32 %15, 3
  %17 = or i32 %16, %1
  %or.cond.not = icmp ne i32 %17, 0
  %18 = and i32 %15, 8
  %.not35 = icmp eq i32 %18, 0
  %or.cond = and i1 %.not35, %or.cond.not
  br i1 %or.cond, label %19, label %51

19:                                               ; preds = %10
  %20 = getelementptr inbounds i8, ptr %12, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !19
  %22 = zext i32 %21 to i64
  %23 = inttoptr i64 %22 to ptr
  %24 = icmp eq i32 %21, 0
  br i1 %24, label %34, label %25

25:                                               ; preds = %19
  %26 = getelementptr inbounds i8, ptr %23, i64 6
  %27 = load i8, ptr %26, align 2, !tbaa !19
  %28 = and i8 %27, 4
  %.not36 = icmp eq i8 %28, 0
  br i1 %.not36, label %29, label %34

29:                                               ; preds = %25
  %30 = load i32, ptr %8, align 4, !tbaa !18
  %31 = zext i32 %30 to i64
  %32 = inttoptr i64 %31 to ptr
  %33 = tail call ptr @lj_meta_cache(ptr noundef nonnull %23, i32 noundef 2, ptr noundef %32) #2
  %.not37 = icmp eq ptr %33, null
  %.pre = load i8, ptr %13, align 4, !tbaa !19
  br i1 %.not37, label %34, label %37

34:                                               ; preds = %25, %19, %29
  %35 = phi i8 [ %14, %25 ], [ %14, %19 ], [ %.pre, %29 ]
  %36 = or i8 %35, 8
  store i8 %36, ptr %13, align 4, !tbaa !19
  br label %51

37:                                               ; preds = %29
  %38 = getelementptr inbounds i8, ptr %12, i64 12
  %39 = load i32, ptr %38, align 4, !tbaa !19
  %40 = zext i32 %39 to i64
  %41 = add i64 %.041, 24
  %42 = add i64 %41, %40
  %43 = or i8 %.pre, 8
  store i8 %43, ptr %13, align 4, !tbaa !19
  %44 = load i32, ptr %12, align 8, !tbaa !20
  store i32 %44, ptr %.03040, align 4, !tbaa !20
  %45 = load i32, ptr %9, align 4, !tbaa !21
  %.not38 = icmp eq i32 %45, 0
  br i1 %.not38, label %50, label %46

46:                                               ; preds = %37
  %47 = zext i32 %45 to i64
  %48 = inttoptr i64 %47 to ptr
  %49 = load i32, ptr %48, align 8, !tbaa !19
  store i32 %49, ptr %12, align 8, !tbaa !19
  store i32 %11, ptr %48, align 8, !tbaa !19
  store i32 %11, ptr %9, align 4, !tbaa !21
  br label %51

50:                                               ; preds = %37
  store i32 %11, ptr %12, align 8, !tbaa !19
  store i32 %11, ptr %9, align 4, !tbaa !21
  br label %51

51:                                               ; preds = %10, %34, %50, %46
  %.131 = phi ptr [ %12, %34 ], [ %.03040, %46 ], [ %.03040, %50 ], [ %12, %10 ]
  %.1 = phi i64 [ %.041, %34 ], [ %42, %46 ], [ %42, %50 ], [ %.041, %10 ]
  %52 = load i32, ptr %.131, align 4, !tbaa !18
  %.not = icmp eq i32 %52, 0
  br i1 %.not, label %._crit_edge, label %10, !llvm.loop !22

._crit_edge:                                      ; preds = %51, %2
  %.0.lcssa = phi i64 [ 0, %2 ], [ %.1, %51 ]
  ret i64 %.0.lcssa
}

declare hidden ptr @lj_meta_cache(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 = { "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 }

!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, !10, i64 128}
!6 = !{!"global_State", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !11, i64 32, !10, i64 88, !14, i64 92, !15, i64 108, !8, i64 124, !8, i64 125, !8, i64 126, !8, i64 127, !12, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !16, i64 160, !17, i64 184, !10, i64 208, !10, i64 212, !7, i64 216, !7, i64 224, !7, i64 232, !10, i64 240, !10, i64 244, !12, i64 248, !13, i64 252, !13, i64 256, !8, i64 260}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"GCState", !10, i64 0, !10, i64 4, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11, !10, i64 12, !12, i64 16, !13, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!12 = !{!"GCRef", !10, i64 0}
!13 = !{!"MRef", !10, i64 0}
!14 = !{!"SBuf", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!15 = !{!"GCstr", !12, i64 0, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !10, i64 8, !10, i64 12}
!16 = !{!"Node", !8, i64 0, !8, i64 8, !13, i64 16, !13, i64 20}
!17 = !{!"GCupval", !12, i64 0, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !8, i64 8, !13, i64 16, !10, i64 20}
!18 = !{!12, !10, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!10, !10, i64 0}
!21 = !{!6, !10, i64 68}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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