; LLVM IR from yettabaa/cub3D :: Mandatory (rendering_wall)

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

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @get_textures(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.s_data, ptr %5, i32 0, i32 21
  %7 = getelementptr inbounds %struct.s_mlx, ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.s_data, ptr %9, i32 0, i32 19
  %11 = getelementptr inbounds %struct.s_map_result, ptr %10, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !21
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.s_data, ptr %13, i32 0, i32 17
  %15 = getelementptr inbounds %struct.s_textures, ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.s_data, ptr %16, i32 0, i32 17
  %18 = getelementptr inbounds %struct.s_textures, ptr %17, i32 0, i32 3
  %19 = call ptr @mlx_xpm_file_to_image(ptr noundef %8, ptr noundef %12, ptr noundef %15, ptr noundef %18)
  store ptr %19, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %24, label %22

22:                                               ; preds = %1
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %23, ptr noundef @.str, i32 noundef 1)
  br label %24

24:                                               ; preds = %22, %1
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.s_data, ptr %26, i32 0, i32 17
  %28 = getelementptr inbounds %struct.s_textures, ptr %27, i32 0, i32 4
  %29 = call ptr @mlx_get_data_addr(ptr noundef %25, ptr noundef %3, ptr noundef %28, ptr noundef %3)
  %30 = load ptr, ptr %2, 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 1
  store ptr %29, ptr %32, align 8, !tbaa !22
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.s_data, ptr %33, i32 0, i32 22
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call ptr @creat_node(ptr noundef %35, ptr noundef %36)
  call void @collect_node(ptr noundef %34, ptr noundef %37)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.s_data, ptr %38, i32 0, i32 21
  %40 = getelementptr inbounds %struct.s_mlx, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.s_data, ptr %42, i32 0, i32 19
  %44 = getelementptr inbounds %struct.s_map_result, ptr %43, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !23
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.s_data, ptr %46, i32 0, i32 17
  %48 = getelementptr inbounds %struct.s_textures, ptr %47, i32 0, i32 6
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.s_data, ptr %49, i32 0, i32 17
  %51 = getelementptr inbounds %struct.s_textures, ptr %50, i32 0, i32 7
  %52 = call ptr @mlx_xpm_file_to_image(ptr noundef %41, ptr noundef %45, ptr noundef %48, ptr noundef %51)
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %57, label %55

55:                                               ; preds = %24
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %56, ptr noundef @.str.1, i32 noundef 1)
  br label %57

57:                                               ; preds = %55, %24
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.s_data, ptr %59, i32 0, i32 17
  %61 = getelementptr inbounds %struct.s_textures, ptr %60, i32 0, i32 8
  %62 = call ptr @mlx_get_data_addr(ptr noundef %58, ptr noundef %3, ptr noundef %61, ptr noundef %3)
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.s_data, ptr %63, i32 0, i32 17
  %65 = getelementptr inbounds %struct.s_textures, ptr %64, i32 0, i32 5
  store ptr %62, ptr %65, align 8, !tbaa !24
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s_data, ptr %66, i32 0, i32 22
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = call ptr @creat_node(ptr noundef %68, ptr noundef %69)
  call void @collect_node(ptr noundef %67, ptr noundef %70)
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.s_data, ptr %71, i32 0, i32 21
  %73 = getelementptr inbounds %struct.s_mlx, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.s_data, ptr %75, i32 0, i32 19
  %77 = getelementptr inbounds %struct.s_map_result, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !25
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.s_data, ptr %79, i32 0, i32 17
  %81 = getelementptr inbounds %struct.s_textures, ptr %80, i32 0, i32 10
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.s_data, ptr %82, i32 0, i32 17
  %84 = getelementptr inbounds %struct.s_textures, ptr %83, i32 0, i32 11
  %85 = call ptr @mlx_xpm_file_to_image(ptr noundef %74, ptr noundef %78, ptr noundef %81, ptr noundef %84)
  store ptr %85, ptr %4, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %90, label %88

88:                                               ; preds = %57
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %89, ptr noundef @.str.2, i32 noundef 1)
  br label %90

90:                                               ; preds = %88, %57
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.s_data, ptr %92, i32 0, i32 17
  %94 = getelementptr inbounds %struct.s_textures, ptr %93, i32 0, i32 12
  %95 = call ptr @mlx_get_data_addr(ptr noundef %91, ptr noundef %3, ptr noundef %94, ptr noundef %3)
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.s_data, ptr %96, i32 0, i32 17
  %98 = getelementptr inbounds %struct.s_textures, ptr %97, i32 0, i32 9
  store ptr %95, ptr %98, align 8, !tbaa !26
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_data, ptr %99, i32 0, i32 22
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = call ptr @creat_node(ptr noundef %101, ptr noundef %102)
  call void @collect_node(ptr noundef %100, ptr noundef %103)
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.s_data, ptr %104, i32 0, i32 21
  %106 = getelementptr inbounds %struct.s_mlx, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.s_data, ptr %108, i32 0, i32 19
  %110 = getelementptr inbounds %struct.s_map_result, ptr %109, i32 0, i32 5
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.s_data, ptr %112, i32 0, i32 17
  %114 = getelementptr inbounds %struct.s_textures, ptr %113, i32 0, i32 14
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.s_data, ptr %115, i32 0, i32 17
  %117 = getelementptr inbounds %struct.s_textures, ptr %116, i32 0, i32 15
  %118 = call ptr @mlx_xpm_file_to_image(ptr noundef %107, ptr noundef %111, ptr noundef %114, ptr noundef %117)
  store ptr %118, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = icmp ne ptr %119, null
  br i1 %120, label %123, label %121

121:                                              ; preds = %90
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %122, ptr noundef @.str.3, i32 noundef 1)
  br label %123

123:                                              ; preds = %121, %90
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.s_data, ptr %125, i32 0, i32 17
  %127 = getelementptr inbounds %struct.s_textures, ptr %126, i32 0, i32 16
  %128 = call ptr @mlx_get_data_addr(ptr noundef %124, ptr noundef %3, ptr noundef %127, ptr noundef %3)
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.s_data, ptr %129, i32 0, i32 17
  %131 = getelementptr inbounds %struct.s_textures, ptr %130, i32 0, i32 13
  store ptr %128, ptr %131, align 8, !tbaa !28
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.s_data, ptr %132, i32 0, i32 22
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = call ptr @creat_node(ptr noundef %134, ptr noundef %135)
  call void @collect_node(ptr noundef %133, ptr noundef %136)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

declare ptr @mlx_xpm_file_to_image(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @my_exit(ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @mlx_get_data_addr(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @collect_node(ptr noundef, ptr noundef) #2

declare ptr @creat_node(ptr noundef, ptr noundef) #2

; 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 = { 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, !6, i64 528}
!10 = !{!"s_data", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !11, i64 88, !11, i64 96, !6, i64 104, !13, i64 112, !14, i64 144, !15, i64 184, !16, i64 208, !17, i64 336, !18, i64 376, !19, i64 456, !20, i64 528, !6, i64 584}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"s_sprites", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!14 = !{!"s_minimap", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!15 = !{!"s_door", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!16 = !{!"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}
!17 = !{!"s_hook", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!18 = !{!"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}
!19 = !{!"s_rycast", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64}
!20 = !{!"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}
!21 = !{!10, !6, i64 384}
!22 = !{!10, !6, i64 216}
!23 = !{!10, !6, i64 392}
!24 = !{!10, !6, i64 240}
!25 = !{!10, !6, i64 400}
!26 = !{!10, !6, i64 264}
!27 = !{!10, !6, i64 408}
!28 = !{!10, !6, i64 288}


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

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @get_textures(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %3 = getelementptr inbounds i8, ptr %0, i64 528
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 384
  %6 = load ptr, ptr %5, align 8, !tbaa !20
  %7 = getelementptr inbounds i8, ptr %0, i64 224
  %8 = getelementptr inbounds i8, ptr %0, i64 228
  %9 = tail call ptr @mlx_xpm_file_to_image(ptr noundef %4, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #3
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %11

10:                                               ; preds = %1
  tail call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str, i32 noundef 1) #3
  br label %11

11:                                               ; preds = %10, %1
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  %13 = call ptr @mlx_get_data_addr(ptr noundef %9, ptr noundef nonnull %2, ptr noundef nonnull %12, ptr noundef nonnull %2) #3
  %14 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr %13, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %0, i64 584
  %16 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %9) #3
  call void @collect_node(ptr noundef nonnull %15, ptr noundef %16) #3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 392
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  %20 = getelementptr inbounds i8, ptr %0, i64 248
  %21 = getelementptr inbounds i8, ptr %0, i64 252
  %22 = call ptr @mlx_xpm_file_to_image(ptr noundef %17, ptr noundef %19, ptr noundef nonnull %20, ptr noundef nonnull %21) #3
  %.not48 = icmp eq ptr %22, null
  br i1 %.not48, label %23, label %24

23:                                               ; preds = %11
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, i32 noundef 1) #3
  br label %24

24:                                               ; preds = %23, %11
  %25 = getelementptr inbounds i8, ptr %0, i64 256
  %26 = call ptr @mlx_get_data_addr(ptr noundef %22, ptr noundef nonnull %2, ptr noundef nonnull %25, ptr noundef nonnull %2) #3
  %27 = getelementptr inbounds i8, ptr %0, i64 240
  store ptr %26, ptr %27, align 8, !tbaa !23
  %28 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %22) #3
  call void @collect_node(ptr noundef nonnull %15, ptr noundef %28) #3
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 400
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %0, i64 272
  %33 = getelementptr inbounds i8, ptr %0, i64 276
  %34 = call ptr @mlx_xpm_file_to_image(ptr noundef %29, ptr noundef %31, ptr noundef nonnull %32, ptr noundef nonnull %33) #3
  %.not49 = icmp eq ptr %34, null
  br i1 %.not49, label %35, label %36

35:                                               ; preds = %24
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, i32 noundef 1) #3
  br label %36

36:                                               ; preds = %35, %24
  %37 = getelementptr inbounds i8, ptr %0, i64 280
  %38 = call ptr @mlx_get_data_addr(ptr noundef %34, ptr noundef nonnull %2, ptr noundef nonnull %37, ptr noundef nonnull %2) #3
  %39 = getelementptr inbounds i8, ptr %0, i64 264
  store ptr %38, ptr %39, align 8, !tbaa !25
  %40 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %34) #3
  call void @collect_node(ptr noundef nonnull %15, ptr noundef %40) #3
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %0, i64 408
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %0, i64 296
  %45 = getelementptr inbounds i8, ptr %0, i64 300
  %46 = call ptr @mlx_xpm_file_to_image(ptr noundef %41, ptr noundef %43, ptr noundef nonnull %44, ptr noundef nonnull %45) #3
  %.not50 = icmp eq ptr %46, null
  br i1 %.not50, label %47, label %48

47:                                               ; preds = %36
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #3
  br label %48

48:                                               ; preds = %47, %36
  %49 = getelementptr inbounds i8, ptr %0, i64 304
  %50 = call ptr @mlx_get_data_addr(ptr noundef %46, ptr noundef nonnull %2, ptr noundef nonnull %49, ptr noundef nonnull %2) #3
  %51 = getelementptr inbounds i8, ptr %0, i64 288
  store ptr %50, ptr %51, align 8, !tbaa !27
  %52 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %46) #3
  call void @collect_node(ptr noundef nonnull %15, ptr noundef %52) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret void
}

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

declare ptr @mlx_xpm_file_to_image(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @my_exit(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @mlx_get_data_addr(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @collect_node(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @creat_node(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress 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 = { 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, !11, i64 528}
!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, !11, i64 384}
!21 = !{!6, !11, i64 216}
!22 = !{!6, !11, i64 392}
!23 = !{!6, !11, i64 240}
!24 = !{!6, !11, i64 400}
!25 = !{!6, !11, i64 264}
!26 = !{!6, !11, i64 408}
!27 = !{!6, !11, i64 288}


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