; LLVM IR from yettabaa/cub3D :: bonus (sprites)

; 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.s_data = type { double, double, double, double, double, double, double, double, double, double, i32, double, double, ptr, %struct.s_sprites, %struct.s_minimap, %struct.s_door, %struct.s_textures, %struct.s_hook, %struct.s_map_result, %struct.s_rycast, %struct.s_mlx, ptr }
%struct.s_sprites = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.s_minimap = type { double, double, double, double, double }
%struct.s_door = type { ptr, i32, i32, i32 }
%struct.s_textures = type { i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32 }
%struct.s_hook = type { double, i32, double, double, double }
%struct.s_map_result = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i8 }
%struct.s_rycast = type { double, double, double, double, double, double, double, double, double }
%struct.s_mlx = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.s_object = type { i32, double, double, double, double, i32, double, double, double, double, double, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @dda_sprite(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %14 = load double, ptr %7, align 8, !tbaa !9
  %15 = fcmp olt double %14, 0.000000e+00
  br i1 %15, label %16, label %17

16:                                               ; preds = %4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %16, %4
  %18 = phi i1 [ false, %4 ], [ false, %16 ]
  %19 = zext i1 %18 to i32
  %20 = load double, ptr %8, align 8, !tbaa !9
  %21 = fcmp ogt double %20, 1.000000e+03
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store double 1.000000e+03, ptr %8, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %22, %17
  %24 = phi i1 [ false, %17 ], [ true, %22 ]
  %25 = zext i1 %24 to i32
  %26 = load double, ptr %7, align 8, !tbaa !9
  %27 = load double, ptr %8, align 8, !tbaa !9
  %28 = fsub double %26, %27
  %29 = call double @llvm.fabs.f64(double %28)
  store double %29, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !11
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.s_data, ptr %30, i32 0, i32 17
  %32 = getelementptr inbounds %struct.s_textures, ptr %31, i32 0, i32 18
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = sitofp i32 %33 to double
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.s_data, ptr %35, i32 0, i32 10
  %37 = load i32, ptr %36, align 8, !tbaa !23
  %38 = sitofp i32 %37 to double
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.s_object, ptr %39, i32 0, i32 7
  %41 = load double, ptr %40, align 8, !tbaa !24
  %42 = fsub double %38, %41
  %43 = fmul double %34, %42
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.s_object, ptr %44, i32 0, i32 6
  %46 = load double, ptr %45, align 8, !tbaa !26
  %47 = fdiv double %43, %46
  %48 = fptosi double %47 to i32
  store i32 %48, ptr %10, align 4, !tbaa !11
  %49 = load i32, ptr %10, align 4, !tbaa !11
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %23
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %52

52:                                               ; preds = %51, %23
  %53 = phi i1 [ false, %23 ], [ false, %51 ]
  %54 = zext i1 %53 to i32
  %55 = load i32, ptr %10, align 4, !tbaa !11
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.s_data, ptr %56, i32 0, i32 17
  %58 = getelementptr inbounds %struct.s_textures, ptr %57, i32 0, i32 18
  %59 = load i32, ptr %58, align 8, !tbaa !13
  %60 = icmp sgt i32 %55, %59
  br i1 %60, label %61, label %67

61:                                               ; preds = %52
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.s_data, ptr %62, i32 0, i32 17
  %64 = getelementptr inbounds %struct.s_textures, ptr %63, i32 0, i32 18
  %65 = load i32, ptr %64, align 8, !tbaa !13
  store i32 %65, ptr %10, align 4, !tbaa !11
  %66 = icmp ne i32 %65, 0
  br label %67

67:                                               ; preds = %61, %52
  %68 = phi i1 [ false, %52 ], [ %66, %61 ]
  %69 = zext i1 %68 to i32
  br label %70

70:                                               ; preds = %157, %67
  %71 = load i32, ptr %9, align 4, !tbaa !11
  %72 = sitofp i32 %71 to double
  %73 = load double, ptr %12, align 8, !tbaa !9
  %74 = fcmp olt double %72, %73
  br i1 %74, label %75, label %164

75:                                               ; preds = %70
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.s_data, ptr %76, i32 0, i32 17
  %78 = getelementptr inbounds %struct.s_textures, ptr %77, i32 0, i32 19
  %79 = load i32, ptr %78, align 4, !tbaa !27
  %80 = sitofp i32 %79 to double
  %81 = load i32, ptr %9, align 4, !tbaa !11
  %82 = sitofp i32 %81 to double
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.s_data, ptr %83, i32 0, i32 12
  %85 = load double, ptr %84, align 8, !tbaa !28
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.s_data, ptr %86, i32 0, i32 11
  %88 = load double, ptr %87, align 8, !tbaa !29
  %89 = fsub double %85, %88
  %90 = load double, ptr %12, align 8, !tbaa !9
  %91 = fsub double %89, %90
  %92 = call double @llvm.fabs.f64(double %91)
  %93 = fdiv double %92, 2.000000e+00
  %94 = fadd double %82, %93
  %95 = fmul double %80, %94
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.s_data, ptr %96, i32 0, i32 12
  %98 = load double, ptr %97, align 8, !tbaa !28
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_data, ptr %99, i32 0, i32 11
  %101 = load double, ptr %100, align 8, !tbaa !29
  %102 = fsub double %98, %101
  %103 = call double @llvm.fabs.f64(double %102)
  %104 = fdiv double %95, %103
  %105 = fptosi double %104 to i32
  store i32 %105, ptr %11, align 4, !tbaa !11
  %106 = load i32, ptr %11, align 4, !tbaa !11
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %75
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %108, %75
  %110 = phi i1 [ false, %75 ], [ false, %108 ]
  %111 = zext i1 %110 to i32
  %112 = load i32, ptr %11, align 4, !tbaa !11
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s_data, ptr %113, i32 0, i32 17
  %115 = getelementptr inbounds %struct.s_textures, ptr %114, i32 0, i32 19
  %116 = load i32, ptr %115, align 4, !tbaa !27
  %117 = icmp sgt i32 %112, %116
  br i1 %117, label %118, label %124

118:                                              ; preds = %109
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.s_data, ptr %119, i32 0, i32 17
  %121 = getelementptr inbounds %struct.s_textures, ptr %120, i32 0, i32 19
  %122 = load i32, ptr %121, align 4, !tbaa !27
  store i32 %122, ptr %11, align 4, !tbaa !11
  %123 = icmp ne i32 %122, 0
  br label %124

124:                                              ; preds = %118, %109
  %125 = phi i1 [ false, %109 ], [ %123, %118 ]
  %126 = zext i1 %125 to i32
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.s_data, ptr %127, i32 0, i32 17
  %129 = getelementptr inbounds %struct.s_textures, ptr %128, i32 0, i32 17
  %130 = load ptr, ptr %129, align 8, !tbaa !30
  %131 = load i32, ptr %11, align 4, !tbaa !11
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.s_data, ptr %132, i32 0, i32 17
  %134 = getelementptr inbounds %struct.s_textures, ptr %133, i32 0, i32 20
  %135 = load i32, ptr %134, align 8, !tbaa !31
  %136 = sdiv i32 %135, 4
  %137 = mul nsw i32 %131, %136
  %138 = load i32, ptr %10, align 4, !tbaa !11
  %139 = add nsw i32 %137, %138
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %130, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !11
  store i32 %142, ptr %13, align 4, !tbaa !11
  %143 = load i32, ptr %13, align 4, !tbaa !11
  %144 = lshr i32 %143, 24
  %145 = and i32 %144, 255
  %146 = icmp ne i32 %145, 255
  br i1 %146, label %147, label %157

147:                                              ; preds = %124
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.s_data, ptr %149, i32 0, i32 10
  %151 = load i32, ptr %150, align 8, !tbaa !23
  %152 = load double, ptr %7, align 8, !tbaa !9
  %153 = fptosi double %152 to i32
  %154 = load i32, ptr %13, align 4, !tbaa !11
  %155 = call i32 @my_pixel_put(ptr noundef %148, i32 noundef %151, i32 noundef %153, i32 noundef %154)
  %156 = icmp ne i32 %155, 0
  br label %157

157:                                              ; preds = %147, %124
  %158 = phi i1 [ false, %124 ], [ %156, %147 ]
  %159 = zext i1 %158 to i32
  %160 = load double, ptr %7, align 8, !tbaa !9
  %161 = fadd double %160, 1.000000e+00
  store double %161, ptr %7, align 8, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !11
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %9, align 4, !tbaa !11
  br label %70, !llvm.loop !32

164:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %9) #4
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

declare i32 @my_pixel_put(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 320}
!14 = !{!"s_data", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !12, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !15, i64 112, !16, i64 144, !17, i64 184, !18, i64 208, !19, i64 336, !20, i64 376, !21, i64 456, !22, i64 528, !6, i64 584}
!15 = !{!"s_sprites", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!16 = !{!"s_minimap", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!17 = !{!"s_door", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!18 = !{!"s_textures", !12, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !6, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !6, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !12, i64 120}
!19 = !{!"s_hook", !10, i64 0, !12, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!20 = !{!"s_map_result", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !7, i64 72}
!21 = !{!"s_rycast", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!22 = !{!"s_mlx", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48}
!23 = !{!14, !12, i64 80}
!24 = !{!25, !10, i64 56}
!25 = !{!"s_object", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !12, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !6, i64 88}
!26 = !{!25, !10, i64 48}
!27 = !{!14, !12, i64 324}
!28 = !{!14, !10, i64 96}
!29 = !{!14, !10, i64 88}
!30 = !{!14, !6, i64 312}
!31 = !{!14, !12, i64 328}
!32 = distinct !{!32, !33}
!33 = !{!"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 dso_local void @dda_sprite(ptr noundef %0, ptr nocapture noundef readonly %1, double noundef %2, double noundef %3) local_unnamed_addr #0 {
  %5 = fcmp olt double %2, 0.000000e+00
  %.0 = select i1 %5, double 0.000000e+00, double %2
  %6 = fcmp ogt double %3, 1.000000e+03
  %.036 = select i1 %6, double 1.000000e+03, double %3
  %7 = fsub double %.0, %.036
  %8 = tail call double @llvm.fabs.f64(double %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 320
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = sitofp i32 %10 to double
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = load i32, ptr %12, align 8, !tbaa !20
  %14 = sitofp i32 %13 to double
  %15 = getelementptr inbounds i8, ptr %1, i64 56
  %16 = load double, ptr %15, align 8, !tbaa !21
  %17 = fsub double %14, %16
  %18 = fmul double %17, %11
  %19 = getelementptr inbounds i8, ptr %1, i64 48
  %20 = load double, ptr %19, align 8, !tbaa !23
  %21 = fdiv double %18, %20
  %22 = fptosi double %21 to i32
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %22, i32 0)
  %.038 = tail call i32 @llvm.smin.i32(i32 %spec.store.select, i32 %10)
  %23 = fcmp ueq double %7, 0.000000e+00
  br i1 %23, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %24 = getelementptr inbounds i8, ptr %0, i64 324
  %25 = getelementptr inbounds i8, ptr %0, i64 96
  %26 = getelementptr inbounds i8, ptr %0, i64 88
  %27 = getelementptr inbounds i8, ptr %0, i64 312
  %28 = getelementptr inbounds i8, ptr %0, i64 328
  br label %29

29:                                               ; preds = %.lr.ph, %56
  %30 = phi double [ 0.000000e+00, %.lr.ph ], [ %59, %56 ]
  %.147 = phi double [ %.0, %.lr.ph ], [ %57, %56 ]
  %.03946 = phi i32 [ 0, %.lr.ph ], [ %58, %56 ]
  %31 = load i32, ptr %24, align 4, !tbaa !24
  %32 = sitofp i32 %31 to double
  %33 = load double, ptr %25, align 8, !tbaa !25
  %34 = load double, ptr %26, align 8, !tbaa !26
  %35 = fsub double %33, %34
  %36 = fsub double %35, %8
  %37 = tail call double @llvm.fabs.f64(double %36)
  %38 = fmul double %37, 5.000000e-01
  %39 = fadd double %30, %38
  %40 = fmul double %39, %32
  %41 = tail call double @llvm.fabs.f64(double %35)
  %42 = fdiv double %40, %41
  %43 = fptosi double %42 to i32
  %spec.store.select1 = tail call i32 @llvm.smax.i32(i32 %43, i32 0)
  %spec.select = tail call i32 @llvm.smin.i32(i32 %spec.store.select1, i32 %31)
  %44 = load ptr, ptr %27, align 8, !tbaa !27
  %45 = load i32, ptr %28, align 8, !tbaa !28
  %46 = sdiv i32 %45, 4
  %47 = mul nsw i32 %spec.select, %46
  %48 = add nsw i32 %47, %.038
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %44, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !29
  %.not = icmp ugt i32 %51, -16777217
  br i1 %.not, label %56, label %52

52:                                               ; preds = %29
  %53 = load i32, ptr %12, align 8, !tbaa !20
  %54 = fptosi double %.147 to i32
  %55 = tail call i32 @my_pixel_put(ptr noundef nonnull %0, i32 noundef %53, i32 noundef %54, i32 noundef %51) #4
  br label %56

56:                                               ; preds = %52, %29
  %57 = fadd double %.147, 1.000000e+00
  %58 = add nuw nsw i32 %.03946, 1
  %59 = uitofp nneg i32 %58 to double
  %60 = fcmp ogt double %8, %59
  br i1 %60, label %29, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %56, %4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

declare i32 @my_pixel_put(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 320}
!6 = !{!"s_data", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !11, i64 104, !12, i64 112, !13, i64 144, !14, i64 184, !15, i64 208, !16, i64 336, !17, i64 376, !18, i64 456, !19, i64 528, !11, i64 584}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"s_sprites", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!"s_minimap", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!14 = !{!"s_door", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!15 = !{!"s_textures", !10, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !11, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !11, i64 104, !10, i64 112, !10, i64 116, !10, i64 120}
!16 = !{!"s_hook", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!17 = !{!"s_map_result", !10, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !8, i64 72}
!18 = !{!"s_rycast", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64}
!19 = !{!"s_mlx", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!20 = !{!6, !10, i64 80}
!21 = !{!22, !7, i64 56}
!22 = !{!"s_object", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !11, i64 88}
!23 = !{!22, !7, i64 48}
!24 = !{!6, !10, i64 324}
!25 = !{!6, !7, i64 96}
!26 = !{!6, !7, i64 88}
!27 = !{!6, !11, i64 312}
!28 = !{!6, !10, i64 328}
!29 = !{!10, !10, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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