; LLVM IR from mesbahamin/star-sim :: src (sim)

; 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.SimState = type { i32, %struct.SimBounds, %struct.SimView, ptr, [100 x %struct.Star] }
%struct.SimBounds = type { float, float, float, float }
%struct.SimView = type { float, float, float }
%struct.Star = type { float, float, float, float, float, float, i32 }
%struct.OffscreenBuffer = type { ptr, i32, i32, i32 }
%struct.QuadTree = type { ptr }

@BRUTE_FORCE = external dso_local global i8, align 1
@RENDER_GRID = external dso_local global i8, align 1
@RENDER_BOUNDING_BOX = external dso_local global 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: nounwind
declare float @sinf(float noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind
declare float @cosf(float noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @sim_render(ptr noundef %0, float noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %20

17:                                               ; preds = %3
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %17, %3
  br label %148

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.SimState, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !11
  store i32 %24, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SimState, ptr %25, i32 0, i32 4
  %27 = getelementptr inbounds [100 x %struct.Star], ptr %26, i64 0, i64 0
  store ptr %27, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SimState, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SimState, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds %struct.SimView, ptr %32, i32 0, i32 0
  %34 = load float, ptr %33, align 4, !tbaa !18
  store float %34, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SimState, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.SimView, ptr %36, i32 0, i32 1
  %38 = load float, ptr %37, align 4, !tbaa !19
  store float %38, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SimState, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds %struct.SimView, ptr %40, i32 0, i32 2
  %42 = load float, ptr %41, align 4, !tbaa !20
  store float %42, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !16
  br label %43

43:                                               ; preds = %125, %21
  %44 = load i32, ptr %13, align 4, !tbaa !16
  %45 = load i32, ptr %7, align 4, !tbaa !16
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %128

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %49 = load i8, ptr @BRUTE_FORCE, align 1, !tbaa !21, !range !23, !noundef !24
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 2793880, ptr %14, align 4, !tbaa !16
  br label %59

52:                                               ; preds = %48
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i32, ptr %13, align 4, !tbaa !16
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %struct.Star, ptr %53, i64 %55
  %57 = getelementptr inbounds %struct.Star, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %57, align 4, !tbaa !25
  store i32 %58, ptr %14, align 4, !tbaa !16
  br label %59

59:                                               ; preds = %52, %51
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load float, ptr %12, align 4, !tbaa !9
  %62 = load float, ptr %10, align 4, !tbaa !9
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load i32, ptr %13, align 4, !tbaa !16
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.Star, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct.Star, ptr %66, i32 0, i32 4
  %68 = load float, ptr %67, align 4, !tbaa !27
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !16
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.Star, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.Star, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 4, !tbaa !28
  %75 = call float @sinf(float noundef %74) #4
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !16
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.Star, ptr %76, i64 %78
  %80 = getelementptr inbounds %struct.Star, ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !29
  %82 = fmul float %75, %81
  %83 = load float, ptr %5, align 4, !tbaa !9
  %84 = call float @llvm.fmuladd.f32(float %82, float %83, float %68)
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.OffscreenBuffer, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 8, !tbaa !30
  %88 = udiv i32 %87, 2
  %89 = uitofp i32 %88 to float
  %90 = call float @sim_calc_render_offset(float noundef %61, float noundef %62, float noundef %84, float noundef %89)
  %91 = fptoui float %90 to i32
  %92 = load float, ptr %12, align 4, !tbaa !9
  %93 = load float, ptr %11, align 4, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !16
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.Star, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.Star, ptr %97, i32 0, i32 5
  %99 = load float, ptr %98, align 4, !tbaa !32
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i32, ptr %13, align 4, !tbaa !16
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.Star, ptr %100, i64 %102
  %104 = getelementptr inbounds %struct.Star, ptr %103, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !28
  %106 = call float @cosf(float noundef %105) #4
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i32, ptr %13, align 4, !tbaa !16
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.Star, ptr %107, i64 %109
  %111 = getelementptr inbounds %struct.Star, ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 4, !tbaa !29
  %113 = fmul float %106, %112
  %114 = load float, ptr %5, align 4, !tbaa !9
  %115 = fneg float %113
  %116 = call float @llvm.fmuladd.f32(float %115, float %114, float %99)
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.OffscreenBuffer, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 4, !tbaa !33
  %120 = udiv i32 %119, 2
  %121 = uitofp i32 %120 to float
  %122 = call float @sim_calc_render_offset(float noundef %92, float noundef %93, float noundef %116, float noundef %121)
  %123 = fptoui float %122 to i32
  %124 = load i32, ptr %14, align 4, !tbaa !16
  call void @sim_set_pixel(ptr noundef %60, i32 noundef %91, i32 noundef %123, i32 noundef %124)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %125

125:                                              ; preds = %59
  %126 = load i32, ptr %13, align 4, !tbaa !16
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %13, align 4, !tbaa !16
  br label %43, !llvm.loop !34

128:                                              ; preds = %47
  %129 = load i8, ptr @RENDER_GRID, align 1, !tbaa !21, !range !23, !noundef !24
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %138

131:                                              ; preds = %128
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.QuadTree, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !36
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.SimState, ptr %136, i32 0, i32 2
  call void @sim_grid_render(ptr noundef %132, ptr noundef %135, i32 noundef 8755456, ptr noundef %137)
  br label %138

138:                                              ; preds = %131, %128
  %139 = load i8, ptr @RENDER_BOUNDING_BOX, align 1, !tbaa !21, !range !23, !noundef !24
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %147

141:                                              ; preds = %138
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.SimState, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SimState, ptr %145, i32 0, i32 2
  call void @sim_bounding_box_render(ptr noundef %142, ptr noundef %144, i32 noundef 14430767, ptr noundef %146)
  br label %147

147:                                              ; preds = %141, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %148

148:                                              ; preds = %147, %20
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @sim_set_pixel(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local float @sim_calc_render_offset(float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @sim_grid_render(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @sim_bounding_box_render(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"SimState", !13, i64 0, !14, i64 4, !15, i64 20, !6, i64 32, !7, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!"SimBounds", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!15 = !{!"SimView", !10, i64 0, !10, i64 4, !10, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 32}
!18 = !{!12, !10, i64 20}
!19 = !{!12, !10, i64 24}
!20 = !{!12, !10, i64 28}
!21 = !{!22, !22, i64 0}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !13, i64 24}
!26 = !{!"Star", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24}
!27 = !{!26, !10, i64 16}
!28 = !{!26, !10, i64 0}
!29 = !{!26, !10, i64 4}
!30 = !{!31, !13, i64 8}
!31 = !{!"OffscreenBuffer", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!32 = !{!26, !10, i64 20}
!33 = !{!31, !13, i64 12}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!37, !6, i64 0}
!37 = !{!"QuadTree", !6, i64 0}


; 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.Star = type { float, float, float, float, float, float, i32 }

@BRUTE_FORCE = external dso_local local_unnamed_addr global i8, align 1
@RENDER_GRID = external dso_local local_unnamed_addr global i8, align 1
@RENDER_BOUNDING_BOX = external dso_local local_unnamed_addr global i8, align 1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @sim_render(ptr noundef %0, float noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = icmp ne ptr %0, null
  %5 = icmp ne ptr %2, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %6, label %63

6:                                                ; preds = %3
  %7 = load i32, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 40
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %2, i64 20
  %12 = load float, ptr %11, align 4, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %2, i64 24
  %14 = load float, ptr %13, align 4, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %2, i64 28
  %16 = load float, ptr %15, align 4, !tbaa !17
  %17 = icmp sgt i32 %7, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %wide.trip.count = zext nneg i32 %7 to i64
  br label %22

._crit_edge:                                      ; preds = %28, %6
  %20 = load i8, ptr @RENDER_GRID, align 1, !tbaa !18, !range !20, !noundef !21
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %56, label %58

22:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %23 = load i8, ptr @BRUTE_FORCE, align 1, !tbaa !18, !range !20, !noundef !21
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = getelementptr inbounds %struct.Star, ptr %8, i64 %indvars.iv, i32 6
  %27 = load i32, ptr %26, align 4, !tbaa !22
  br label %28

28:                                               ; preds = %22, %25
  %.0 = phi i32 [ %27, %25 ], [ 2793880, %22 ]
  %29 = getelementptr inbounds %struct.Star, ptr %8, i64 %indvars.iv
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = load float, ptr %30, align 4, !tbaa !24
  %32 = load float, ptr %29, align 4, !tbaa !25
  %33 = tail call float @sinf(float noundef %32) #3
  %34 = getelementptr inbounds i8, ptr %29, i64 4
  %35 = load float, ptr %34, align 4, !tbaa !26
  %36 = fmul float %33, %35
  %37 = tail call float @llvm.fmuladd.f32(float %36, float %1, float %31)
  %38 = load i32, ptr %18, align 8, !tbaa !27
  %39 = lshr i32 %38, 1
  %40 = uitofp nneg i32 %39 to float
  %41 = tail call float @sim_calc_render_offset(float noundef %16, float noundef %12, float noundef %37, float noundef %40)
  %42 = fptoui float %41 to i32
  %43 = getelementptr inbounds i8, ptr %29, i64 20
  %44 = load float, ptr %43, align 4, !tbaa !29
  %45 = load float, ptr %29, align 4, !tbaa !25
  %46 = tail call float @cosf(float noundef %45) #3
  %47 = load float, ptr %34, align 4, !tbaa !26
  %48 = fneg float %46
  %49 = fmul float %47, %48
  %50 = tail call float @llvm.fmuladd.f32(float %49, float %1, float %44)
  %51 = load i32, ptr %19, align 4, !tbaa !30
  %52 = lshr i32 %51, 1
  %53 = uitofp nneg i32 %52 to float
  %54 = tail call float @sim_calc_render_offset(float noundef %16, float noundef %14, float noundef %50, float noundef %53)
  %55 = fptoui float %54 to i32
  tail call void @sim_set_pixel(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %55, i32 noundef %.0)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %22, !llvm.loop !31

56:                                               ; preds = %._crit_edge
  %57 = load ptr, ptr %10, align 8, !tbaa !33
  tail call void @sim_grid_render(ptr noundef nonnull %0, ptr noundef %57, i32 noundef 8755456, ptr noundef nonnull %11)
  br label %58

58:                                               ; preds = %56, %._crit_edge
  %59 = load i8, ptr @RENDER_BOUNDING_BOX, align 1, !tbaa !18, !range !20, !noundef !21
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %63

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %2, i64 4
  tail call void @sim_bounding_box_render(ptr noundef nonnull %0, ptr noundef nonnull %62, i32 noundef 14430767, ptr noundef nonnull %11)
  br label %63

63:                                               ; preds = %58, %61, %3
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @sim_set_pixel(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local float @sim_calc_render_offset(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sim_grid_render(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @sim_bounding_box_render(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "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 speculatable willreturn memory(none) }
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 = { 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 = !{!"SimState", !7, i64 0, !10, i64 4, !12, i64 20, !13, i64 32, !8, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"SimBounds", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"float", !8, i64 0}
!12 = !{!"SimView", !11, i64 0, !11, i64 4, !11, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !13, i64 32}
!15 = !{!6, !11, i64 20}
!16 = !{!6, !11, i64 24}
!17 = !{!6, !11, i64 28}
!18 = !{!19, !19, i64 0}
!19 = !{!"_Bool", !8, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !7, i64 24}
!23 = !{!"Star", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24}
!24 = !{!23, !11, i64 16}
!25 = !{!23, !11, i64 0}
!26 = !{!23, !11, i64 4}
!27 = !{!28, !7, i64 8}
!28 = !{!"OffscreenBuffer", !13, i64 0, !7, i64 8, !7, i64 12, !7, i64 16}
!29 = !{!23, !11, i64 20}
!30 = !{!28, !7, i64 12}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !13, i64 0}
!34 = !{!"QuadTree", !13, i64 0}


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