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

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

@centerxfrac = external dso_local global i32, align 4
@finetangent = external global [4096 x i32], align 16
@viewwidth = external global i32, align 4
@viewangletox = external dso_local global [4096 x i32], align 16
@xtoviewangle = external dso_local global [321 x i32], align 16
@centerx = external dso_local global i32, align 4
@clipangle = external dso_local global i32, align 4

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

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

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

declare i32 @FixedDiv(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @R_InitTextureMapping() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %5 = load i32, ptr @centerxfrac, align 4, !tbaa !5
  %6 = load i32, ptr getelementptr inbounds ([4096 x i32], ptr @finetangent, i64 0, i64 3072), align 16, !tbaa !5
  %7 = call i32 @FixedDiv(i32 noundef %5, i32 noundef %6)
  store i32 %7, ptr %4, align 4, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %59, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 4096
  br i1 %10, label %11, label %62

11:                                               ; preds = %8
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 131072
  br i1 %16, label %17, label %18

17:                                               ; preds = %11
  store i32 -1, ptr %3, align 4, !tbaa !5
  br label %54

18:                                               ; preds = %11
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = icmp slt i32 %22, -131072
  br i1 %23, label %24, label %27

24:                                               ; preds = %18
  %25 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %3, align 4, !tbaa !5
  br label %53

27:                                               ; preds = %18
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = call i32 @FixedMul(i32 noundef %31, i32 noundef %32)
  store i32 %33, ptr %3, align 4, !tbaa !5
  %34 = load i32, ptr @centerxfrac, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sub nsw i32 %34, %35
  %37 = add nsw i32 %36, 65536
  %38 = sub nsw i32 %37, 1
  %39 = ashr i32 %38, 16
  store i32 %39, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = icmp slt i32 %40, -1
  br i1 %41, label %42, label %43

42:                                               ; preds = %27
  store i32 -1, ptr %3, align 4, !tbaa !5
  br label %52

43:                                               ; preds = %27
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  %47 = icmp sgt i32 %44, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %48, %43
  br label %52

52:                                               ; preds = %51, %42
  br label %53

53:                                               ; preds = %52, %24
  br label %54

54:                                               ; preds = %53, %17
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %57
  store i32 %55, ptr %58, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %54
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !9

62:                                               ; preds = %8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %85, %62
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %67, label %88

67:                                               ; preds = %63
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %75, %67
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = icmp sgt i32 %72, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %68
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %1, align 4, !tbaa !5
  br label %68, !llvm.loop !11

78:                                               ; preds = %68
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = shl i32 %79, 19
  %81 = sub nsw i32 %80, 1073741824
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %83
  store i32 %81, ptr %84, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %78
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %2, align 4, !tbaa !5
  br label %63, !llvm.loop !12

88:                                               ; preds = %63
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %126, %88
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 4096
  br i1 %91, label %92, label %129

92:                                               ; preds = %89
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = call i32 @FixedMul(i32 noundef %96, i32 noundef %97)
  store i32 %98, ptr %3, align 4, !tbaa !5
  %99 = load i32, ptr @centerx, align 4, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = sub nsw i32 %99, %100
  store i32 %101, ptr %3, align 4, !tbaa !5
  %102 = load i32, ptr %1, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp eq i32 %105, -1
  br i1 %106, label %107, label %111

107:                                              ; preds = %92
  %108 = load i32, ptr %1, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %109
  store i32 0, ptr %110, align 4, !tbaa !5
  br label %125

111:                                              ; preds = %92
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  %118 = icmp eq i32 %115, %117
  br i1 %118, label %119, label %124

119:                                              ; preds = %111
  %120 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %121 = load i32, ptr %1, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %122
  store i32 %120, ptr %123, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %119, %111
  br label %125

125:                                              ; preds = %124, %107
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %1, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %1, align 4, !tbaa !5
  br label %89, !llvm.loop !13

129:                                              ; preds = %89
  %130 = load i32, ptr @xtoviewangle, align 16, !tbaa !5
  store i32 %130, ptr @clipangle, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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

@centerxfrac = external dso_local local_unnamed_addr global i32, align 4
@finetangent = external local_unnamed_addr global [4096 x i32], align 16
@viewwidth = external local_unnamed_addr global i32, align 4
@viewangletox = external dso_local local_unnamed_addr global [4096 x i32], align 16
@xtoviewangle = external dso_local local_unnamed_addr global [321 x i32], align 16
@clipangle = external dso_local local_unnamed_addr global i32, align 4

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

declare i32 @FixedDiv(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @R_InitTextureMapping() local_unnamed_addr #2 {
  %1 = load i32, ptr @centerxfrac, align 4, !tbaa !5
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @finetangent, i64 12288), align 16, !tbaa !5
  %3 = tail call i32 @FixedDiv(i32 noundef %1, i32 noundef %2) #4
  br label %7

.preheader34:                                     ; preds = %25
  %4 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %.not36 = icmp slt i32 %4, 0
  br i1 %.not36, label %.preheader.preheader, label %.preheader33.preheader

.preheader33.preheader:                           ; preds = %.preheader34
  %5 = add nuw i32 %4, 1
  %wide.trip.count = zext i32 %5 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %6 = icmp eq i32 %4, 0
  br i1 %6, label %.preheader.preheader.loopexit.unr-lcssa, label %.preheader33.preheader.new

.preheader33.preheader.new:                       ; preds = %.preheader33.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.preheader33

7:                                                ; preds = %0, %25
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %25 ]
  %8 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %indvars.iv
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 131072
  br i1 %10, label %25, label %11

11:                                               ; preds = %7
  %12 = icmp slt i32 %9, -131072
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  br label %25

16:                                               ; preds = %11
  %17 = tail call i32 @FixedMul(i32 noundef %9, i32 noundef %3)
  %18 = load i32, ptr @centerxfrac, align 4, !tbaa !5
  %reass.sub = sub i32 %18, %17
  %19 = add i32 %reass.sub, 65535
  %20 = ashr i32 %19, 16
  %21 = icmp slt i32 %20, -1
  br i1 %21, label %25, label %22

22:                                               ; preds = %16
  %23 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  %spec.select = tail call i32 @llvm.smin.i32(i32 %20, i32 %24)
  br label %25

25:                                               ; preds = %22, %16, %7, %13
  %.027 = phi i32 [ %15, %13 ], [ -1, %7 ], [ -1, %16 ], [ %spec.select, %22 ]
  %26 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %indvars.iv
  store i32 %.027, ptr %26, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4096
  br i1 %exitcond.not, label %.preheader34, label %7, !llvm.loop !9

.preheader33:                                     ; preds = %41, %.preheader33.preheader.new
  %indvars.iv43 = phi i64 [ 0, %.preheader33.preheader.new ], [ %indvars.iv.next44.1, %41 ]
  %niter = phi i64 [ 0, %.preheader33.preheader.new ], [ %niter.next.1, %41 ]
  br label %27

27:                                               ; preds = %27, %.preheader33
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %27 ], [ 0, %.preheader33 ]
  %28 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %indvars.iv40
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv43, %30
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  br i1 %31, label %27, label %.preheader33.1, !llvm.loop !11

.preheader33.1:                                   ; preds = %27
  %32 = trunc nuw nsw i64 %indvars.iv40 to i32
  %33 = shl i32 %32, 19
  %34 = add nsw i32 %33, -1073741824
  %35 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %indvars.iv43
  store i32 %34, ptr %35, align 8, !tbaa !5
  %indvars.iv.next44 = or disjoint i64 %indvars.iv43, 1
  br label %36

36:                                               ; preds = %36, %.preheader33.1
  %indvars.iv40.1 = phi i64 [ %indvars.iv.next41.1, %36 ], [ 0, %.preheader33.1 ]
  %37 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %indvars.iv40.1
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next44, %39
  %indvars.iv.next41.1 = add nuw nsw i64 %indvars.iv40.1, 1
  br i1 %40, label %36, label %41, !llvm.loop !11

41:                                               ; preds = %36
  %42 = trunc nuw nsw i64 %indvars.iv40.1 to i32
  %43 = shl i32 %42, 19
  %44 = add nsw i32 %43, -1073741824
  %45 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %indvars.iv.next44
  store i32 %44, ptr %45, align 4, !tbaa !5
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.preheader.loopexit.unr-lcssa, label %.preheader33, !llvm.loop !12

.preheader.preheader.loopexit.unr-lcssa:          ; preds = %41, %.preheader33.preheader
  %indvars.iv43.unr = phi i64 [ 0, %.preheader33.preheader ], [ %indvars.iv.next44.1, %41 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader.preheader, label %.preheader33.epil

.preheader33.epil:                                ; preds = %.preheader.preheader.loopexit.unr-lcssa, %.preheader33.epil
  %indvars.iv40.epil = phi i64 [ %indvars.iv.next41.epil, %.preheader33.epil ], [ 0, %.preheader.preheader.loopexit.unr-lcssa ]
  %46 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %indvars.iv40.epil
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv43.unr, %48
  %indvars.iv.next41.epil = add nuw nsw i64 %indvars.iv40.epil, 1
  br i1 %49, label %.preheader33.epil, label %.preheader.preheader.loopexit.epilog-lcssa, !llvm.loop !11

.preheader.preheader.loopexit.epilog-lcssa:       ; preds = %.preheader33.epil
  %50 = trunc nuw nsw i64 %indvars.iv40.epil to i32
  %51 = shl i32 %50, 19
  %52 = add nsw i32 %51, -1073741824
  %53 = getelementptr inbounds [321 x i32], ptr @xtoviewangle, i64 0, i64 %indvars.iv43.unr
  store i32 %52, ptr %53, align 4, !tbaa !5
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.preheader.loopexit.epilog-lcssa, %.preheader.preheader.loopexit.unr-lcssa, %.preheader34
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %64
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %64 ], [ 0, %.preheader.preheader ]
  %54 = getelementptr inbounds [4096 x i32], ptr @finetangent, i64 0, i64 %indvars.iv47
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = tail call i32 @FixedMul(i32 noundef %55, i32 noundef %3)
  %57 = getelementptr inbounds [4096 x i32], ptr @viewangletox, i64 0, i64 %indvars.iv47
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp eq i32 %58, -1
  br i1 %59, label %.sink.split, label %60

60:                                               ; preds = %.preheader
  %61 = load i32, ptr @viewwidth, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = icmp eq i32 %58, %62
  br i1 %63, label %.sink.split, label %64

.sink.split:                                      ; preds = %60, %.preheader
  %.sink = phi i32 [ 0, %.preheader ], [ %61, %60 ]
  store i32 %.sink, ptr %57, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %.sink.split, %60
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next48, 4096
  br i1 %exitcond50.not, label %65, label %.preheader, !llvm.loop !13

65:                                               ; preds = %64
  %66 = load i32, ptr @xtoviewangle, align 16, !tbaa !5
  store i32 %66, ptr @clipangle, align 4, !tbaa !5
  ret void
}

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

attributes #0 = { 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 #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 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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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