; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Doom/mc1-doom/src (r_plane)

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

@viewwidth = external global i32, align 4
@viewheight = external global i32, align 4
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@planeheight = external dso_local global i32, align 4
@cachedheight = external dso_local global [200 x i32], align 16
@yslope = external dso_local global [200 x i32], align 16
@cacheddistance = external dso_local global [200 x i32], align 16
@basexscale = external dso_local global i32, align 4
@cachedxstep = external dso_local global [200 x i32], align 16
@ds_xstep = external global i32, align 4
@baseyscale = external dso_local global i32, align 4
@cachedystep = external dso_local global [200 x i32], align 16
@ds_ystep = external global i32, align 4
@distscale = external dso_local global [320 x i32], align 16
@viewangle = external global i32, align 4
@xtoviewangle = external global [321 x i32], align 16
@viewx = external global i32, align 4
@finecosine = external global ptr, align 8
@ds_xfrac = external global i32, align 4
@viewy = external global i32, align 4
@finesine = external global [10240 x i32], align 16
@ds_yfrac = external global i32, align 4
@fixedcolormap = external global ptr, align 8
@ds_colormap = external global ptr, align 8
@planezlight = external dso_local global ptr, align 8
@ds_y = external global i32, align 4
@ds_x1 = external global i32, align 4
@ds_x2 = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @R_MapPlane(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %11 = load i32, ptr %6, align 4, !tbaa !5
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %28, label %14

14:                                               ; preds = %3
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %28, label %17

17:                                               ; preds = %14
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %20 = icmp sge i32 %18, %19
  br i1 %20, label %28, label %21

21:                                               ; preds = %17
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %28, label %24

24:                                               ; preds = %21
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr @viewheight, align 4, !tbaa !5
  %27 = icmp sgt i32 %25, %26
  br i1 %27, label %28, label %32

28:                                               ; preds = %24, %21, %17, %14, %3
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %4, align 4, !tbaa !5
  call void (ptr, ...) @I_Error(ptr noundef @.str, i32 noundef %29, i32 noundef %30, i32 noundef %31) #6
  unreachable

32:                                               ; preds = %24
  %33 = load i32, ptr @planeheight, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [200 x i32], ptr @cachedheight, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = icmp ne i32 %33, %37
  br i1 %38, label %39, label %65

39:                                               ; preds = %32
  %40 = load i32, ptr @planeheight, align 4, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [200 x i32], ptr @cachedheight, i64 0, i64 %42
  store i32 %40, ptr %43, align 4, !tbaa !5
  %44 = load i32, ptr @planeheight, align 4, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [200 x i32], ptr @yslope, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = call i32 @FixedMul(i32 noundef %44, i32 noundef %48)
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [200 x i32], ptr @cacheddistance, i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !5
  store i32 %49, ptr %8, align 4, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = load i32, ptr @basexscale, align 4, !tbaa !5
  %55 = call i32 @FixedMul(i32 noundef %53, i32 noundef %54)
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [200 x i32], ptr @cachedxstep, i64 0, i64 %57
  store i32 %55, ptr %58, align 4, !tbaa !5
  store i32 %55, ptr @ds_xstep, align 4, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = load i32, ptr @baseyscale, align 4, !tbaa !5
  %61 = call i32 @FixedMul(i32 noundef %59, i32 noundef %60)
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [200 x i32], ptr @cachedystep, i64 0, i64 %63
  store i32 %61, ptr %64, align 4, !tbaa !5
  store i32 %61, ptr @ds_ystep, align 4, !tbaa !5
  br label %78

65:                                               ; preds = %32
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200 x i32], ptr @cacheddistance, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  store i32 %69, ptr %8, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200 x i32], ptr @cachedxstep, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  store i32 %73, ptr @ds_xstep, align 4, !tbaa !5
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200 x i32], ptr @cachedystep, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %77, ptr @ds_ystep, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %65, %39
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [320 x i32], ptr @distscale, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = call i32 @FixedMul(i32 noundef %79, i32 noundef %83)
  store i32 %84, ptr %9, align 4, !tbaa !5
  %85 = load i32, ptr @viewangle, align 4, !tbaa !5
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add i32 %85, %89
  %91 = lshr i32 %90, 19
  store i32 %91, ptr %7, align 4, !tbaa !5
  %92 = load i32, ptr @viewx, align 4, !tbaa !5
  %93 = load ptr, ptr @finecosine, align 8, !tbaa !9
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = call i32 @FixedMul(i32 noundef %97, i32 noundef %98)
  %100 = add nsw i32 %92, %99
  store i32 %100, ptr @ds_xfrac, align 4, !tbaa !5
  %101 = load i32, ptr @viewy, align 4, !tbaa !5
  %102 = sub nsw i32 0, %101
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = call i32 @FixedMul(i32 noundef %106, i32 noundef %107)
  %109 = sub nsw i32 %102, %108
  store i32 %109, ptr @ds_yfrac, align 4, !tbaa !5
  %110 = load ptr, ptr @fixedcolormap, align 8, !tbaa !9
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %114

112:                                              ; preds = %78
  %113 = load ptr, ptr @fixedcolormap, align 8, !tbaa !9
  store ptr %113, ptr @ds_colormap, align 8, !tbaa !9
  br label %126

114:                                              ; preds = %78
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = ashr i32 %115, 20
  store i32 %116, ptr %10, align 4, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = icmp uge i32 %117, 128
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  store i32 127, ptr %10, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %119, %114
  %121 = load ptr, ptr @planezlight, align 8, !tbaa !9
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  store ptr %125, ptr @ds_colormap, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %120, %112
  %127 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %127, ptr @ds_y, align 4, !tbaa !5
  %128 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %128, ptr @ds_x1, align 4, !tbaa !5
  %129 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %129, ptr @ds_x2, align 4, !tbaa !5
  call void @R_DrawSpan()
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  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: noreturn
declare void @I_Error(ptr noundef, ...) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @FixedMul(i32 noundef, i32 noundef) #3

declare void @R_DrawSpan() #4

; 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 = { noreturn "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 = { inlinehint 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 = { "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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, 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"

@viewwidth = external local_unnamed_addr global i32, align 4
@viewheight = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@planeheight = external dso_local local_unnamed_addr global i32, align 4
@cachedheight = external dso_local local_unnamed_addr global [200 x i32], align 16
@yslope = external dso_local local_unnamed_addr global [200 x i32], align 16
@cacheddistance = external dso_local local_unnamed_addr global [200 x i32], align 16
@basexscale = external dso_local local_unnamed_addr global i32, align 4
@cachedxstep = external dso_local local_unnamed_addr global [200 x i32], align 16
@ds_xstep = external local_unnamed_addr global i32, align 4
@baseyscale = external dso_local local_unnamed_addr global i32, align 4
@cachedystep = external dso_local local_unnamed_addr global [200 x i32], align 16
@ds_ystep = external local_unnamed_addr global i32, align 4
@distscale = external dso_local local_unnamed_addr global [320 x i32], align 16
@viewangle = external local_unnamed_addr global i32, align 4
@xtoviewangle = external local_unnamed_addr global [321 x i32], align 16
@viewx = external local_unnamed_addr global i32, align 4
@finecosine = external local_unnamed_addr global ptr, align 8
@ds_xfrac = external local_unnamed_addr global i32, align 4
@viewy = external local_unnamed_addr global i32, align 4
@finesine = external local_unnamed_addr global [10240 x i32], align 16
@ds_yfrac = external local_unnamed_addr global i32, align 4
@fixedcolormap = external local_unnamed_addr global ptr, align 8
@ds_colormap = external local_unnamed_addr global ptr, align 8
@planezlight = external dso_local local_unnamed_addr global ptr, align 8
@ds_y = external local_unnamed_addr global i32, align 4
@ds_x1 = external local_unnamed_addr global i32, align 4
@ds_x2 = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @R_MapPlane(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp slt i32 %2, %1
  %5 = icmp slt i32 %1, 0
  %or.cond = or i1 %5, %4
  br i1 %or.cond, label %12, label %6

6:                                                ; preds = %3
  %7 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %8 = icmp sle i32 %7, %2
  %9 = icmp slt i32 %0, 0
  %or.cond3 = or i1 %9, %8
  %10 = load i32, ptr @viewheight, align 4
  %11 = icmp slt i32 %10, %0
  %or.cond44 = select i1 %or.cond3, i1 true, i1 %11
  br i1 %or.cond44, label %12, label %13

12:                                               ; preds = %6, %3
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str, i32 noundef %1, i32 noundef %2, i32 noundef %0) #5
  unreachable

13:                                               ; preds = %6
  %14 = load i32, ptr @planeheight, align 4, !tbaa !5
  %15 = zext nneg i32 %0 to i64
  %16 = getelementptr inbounds [200 x i32], ptr @cachedheight, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %.not = icmp eq i32 %14, %17
  br i1 %.not, label %29, label %18

18:                                               ; preds = %13
  store i32 %14, ptr %16, align 4, !tbaa !5
  %19 = getelementptr inbounds [200 x i32], ptr @yslope, i64 0, i64 %15
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = tail call i32 @FixedMul(i32 noundef %14, i32 noundef %20)
  %22 = getelementptr inbounds [200 x i32], ptr @cacheddistance, i64 0, i64 %15
  store i32 %21, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr @basexscale, align 4, !tbaa !5
  %24 = tail call i32 @FixedMul(i32 noundef %21, i32 noundef %23)
  %25 = getelementptr inbounds [200 x i32], ptr @cachedxstep, i64 0, i64 %15
  store i32 %24, ptr %25, align 4, !tbaa !5
  store i32 %24, ptr @ds_xstep, align 4, !tbaa !5
  %26 = load i32, ptr @baseyscale, align 4, !tbaa !5
  %27 = tail call i32 @FixedMul(i32 noundef %21, i32 noundef %26)
  %28 = getelementptr inbounds [200 x i32], ptr @cachedystep, i64 0, i64 %15
  store i32 %27, ptr %28, align 4, !tbaa !5
  br label %36

29:                                               ; preds = %13
  %30 = getelementptr inbounds [200 x i32], ptr @cacheddistance, i64 0, i64 %15
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = getelementptr inbounds [200 x i32], ptr @cachedxstep, i64 0, i64 %15
  %33 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %33, ptr @ds_xstep, align 4, !tbaa !5
  %34 = getelementptr inbounds [200 x i32], ptr @cachedystep, i64 0, i64 %15
  %35 = load i32, ptr %34, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %29, %18
  %storemerge = phi i32 [ %35, %29 ], [ %27, %18 ]
  %.0 = phi i32 [ %31, %29 ], [ %21, %18 ]
  store i32 %storemerge, ptr @ds_ystep, align 4, !tbaa !5
  %37 = zext nneg i32 %1 to i64
  %38 = getelementptr inbounds [320 x i32], ptr @distscale, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = tail call i32 @FixedMul(i32 noundef %.0, i32 noundef %39)
  %41 = load i32, ptr @viewangle, align 4, !tbaa !5
  %42 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %37
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add i32 %43, %41
  %45 = lshr i32 %44, 19
  %46 = load i32, ptr @viewx, align 4, !tbaa !5
  %47 = load ptr, ptr @finecosine, align 8, !tbaa !9
  %48 = zext nneg i32 %45 to i64
  %49 = getelementptr inbounds i32, ptr %47, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = tail call i32 @FixedMul(i32 noundef %50, i32 noundef %40)
  %52 = add nsw i32 %51, %46
  store i32 %52, ptr @ds_xfrac, align 4, !tbaa !5
  %53 = load i32, ptr @viewy, align 4, !tbaa !5
  %54 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %48
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = tail call i32 @FixedMul(i32 noundef %55, i32 noundef %40)
  %57 = add i32 %53, %56
  %58 = sub i32 0, %57
  store i32 %58, ptr @ds_yfrac, align 4, !tbaa !5
  %59 = load ptr, ptr @fixedcolormap, align 8, !tbaa !9
  %.not41 = icmp eq ptr %59, null
  br i1 %.not41, label %60, label %66

60:                                               ; preds = %36
  %61 = ashr i32 %.0, 20
  %spec.store.select = tail call i32 @llvm.umin.i32(i32 %61, i32 127)
  %62 = load ptr, ptr @planezlight, align 8, !tbaa !9
  %63 = zext nneg i32 %spec.store.select to i64
  %64 = getelementptr inbounds ptr, ptr %62, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %36, %60
  %storemerge42 = phi ptr [ %65, %60 ], [ %59, %36 ]
  store ptr %storemerge42, ptr @ds_colormap, align 8, !tbaa !9
  store i32 %0, ptr @ds_y, align 4, !tbaa !5
  store i32 %1, ptr @ds_x1, align 4, !tbaa !5
  store i32 %2, ptr @ds_x2, align 4, !tbaa !5
  tail call void @R_DrawSpan() #6
  ret void
}

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) local_unnamed_addr #1

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

declare void @R_DrawSpan() local_unnamed_addr #3

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

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 = { noreturn "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 = { inlinehint 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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