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

; 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.patch_t = type { i16, i16, i16, i16, [8 x i32] }

@finaleflat = external dso_local global ptr, align 8
@finaletext = external dso_local global ptr, align 8
@finalecount = external dso_local global i32, align 4
@screens = external global [5 x ptr], align 16
@hu_font = external global [63 x ptr], align 16

; 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 uwtable
define dso_local void @F_TextWrite() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %16 = load ptr, ptr @finaleflat, align 8, !tbaa !5
  %17 = call ptr @W_CacheLumpName(ptr noundef %16, i32 noundef 101)
  store ptr %17, ptr %1, align 8, !tbaa !5
  %18 = load ptr, ptr @screens, align 16, !tbaa !5
  store ptr %18, ptr %2, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %40, %0
  %20 = load i32, ptr %4, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 200
  br i1 %21, label %22, label %43

22:                                               ; preds = %19
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %36, %22
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = icmp slt i32 %24, 5
  br i1 %25, label %26, label %39

26:                                               ; preds = %23
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = and i32 %29, 63
  %31 = shl i32 %30, 6
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %28, i64 %32
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %27, ptr align 1 %33, i64 64, i1 false)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 64
  store ptr %35, ptr %2, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %26
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %3, align 4, !tbaa !9
  br label %23, !llvm.loop !11

39:                                               ; preds = %23
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %4, align 4, !tbaa !9
  br label %19, !llvm.loop !13

43:                                               ; preds = %19
  call void @V_MarkRect(i32 noundef 0, i32 noundef 0, i32 noundef 320, i32 noundef 200)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 10, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 10, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %45, ptr %10, align 4, !tbaa !9
  %46 = load ptr, ptr @finaletext, align 8, !tbaa !5
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load i32, ptr @finalecount, align 4, !tbaa !9
  %48 = sub nsw i32 %47, 10
  %49 = sdiv i32 %48, 3
  store i32 %49, ptr %6, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %43
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %53

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

54:                                               ; preds = %131, %53
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %134

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i32 1
  store ptr %59, ptr %7, align 8, !tbaa !5
  %60 = load i8, ptr %58, align 1, !tbaa !14
  %61 = sext i8 %60 to i32
  store i32 %61, ptr %8, align 4, !tbaa !9
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  br label %134

65:                                               ; preds = %57
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 10
  br i1 %67, label %68, label %72

68:                                               ; preds = %65
  %69 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %69, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = add nsw i32 %70, 11
  store i32 %71, ptr %10, align 4, !tbaa !9
  br label %131

72:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = call i1 @llvm.is.constant.i32(i32 %73)
  br i1 %74, label %75, label %93

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %76 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = icmp slt i32 %77, -128
  br i1 %78, label %82, label %79

79:                                               ; preds = %75
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = icmp sgt i32 %80, 255
  br i1 %81, label %82, label %84

82:                                               ; preds = %79, %75
  %83 = load i32, ptr %14, align 4, !tbaa !9
  br label %91

84:                                               ; preds = %79
  %85 = call ptr @__ctype_toupper_loc() #8
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %84, %82
  %92 = phi i32 [ %83, %82 ], [ %90, %84 ]
  store i32 %92, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %96

93:                                               ; preds = %72
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = call i32 @toupper(i32 noundef %94) #9
  store i32 %95, ptr %13, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %93, %91
  %97 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %97, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = sub nsw i32 %98, 33
  store i32 %99, ptr %8, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = icmp slt i32 %100, 0
  br i1 %101, label %105, label %102

102:                                              ; preds = %96
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 63
  br i1 %104, label %105, label %108

105:                                              ; preds = %102, %96
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = add nsw i32 %106, 4
  store i32 %107, ptr %9, align 4, !tbaa !9
  br label %131

108:                                              ; preds = %102
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [63 x ptr], ptr @hu_font, i64 0, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.patch_t, ptr %112, i32 0, i32 0
  %114 = load i16, ptr %113, align 4, !tbaa !15
  %115 = sext i16 %114 to i32
  store i32 %115, ptr %5, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = add nsw i32 %116, %117
  %119 = icmp sgt i32 %118, 320
  br i1 %119, label %120, label %121

120:                                              ; preds = %108
  br label %134

121:                                              ; preds = %108
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [63 x ptr], ptr @hu_font, i64 0, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  call void @V_DrawPatch(i32 noundef %122, i32 noundef %123, i32 noundef 0, ptr noundef %127)
  %128 = load i32, ptr %5, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = add nsw i32 %129, %128
  store i32 %130, ptr %9, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %121, %105, %68
  %132 = load i32, ptr %6, align 4, !tbaa !9
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr %6, align 4, !tbaa !9
  br label %54, !llvm.loop !18

134:                                              ; preds = %120, %64, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void
}

declare ptr @W_CacheLumpName(ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @V_MarkRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.is.constant.i32(i32) #4

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() #5

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @toupper(i32 noundef) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(none) "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 #6 = { inlinehint nounwind willreturn memory(read) 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !12}


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

@finaleflat = external dso_local local_unnamed_addr global ptr, align 8
@finaletext = external dso_local local_unnamed_addr global ptr, align 8
@finalecount = external dso_local local_unnamed_addr global i32, align 4
@screens = external local_unnamed_addr global [5 x ptr], align 16
@hu_font = external local_unnamed_addr global [63 x ptr], align 16

; Function Attrs: nounwind uwtable
define dso_local void @F_TextWrite() local_unnamed_addr #0 {
  %1 = load ptr, ptr @finaleflat, align 8, !tbaa !5
  %2 = tail call ptr @W_CacheLumpName(ptr noundef %1, i32 noundef 101) #4
  %3 = load ptr, ptr @screens, align 16, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %0, %.preheader
  %.056 = phi ptr [ %3, %0 ], [ %12, %.preheader ]
  %.04255 = phi i32 [ 0, %0 ], [ %13, %.preheader ]
  %4 = shl nuw nsw i32 %.04255, 6
  %5 = and i32 %4, 4032
  %6 = zext nneg i32 %5 to i64
  %7 = getelementptr inbounds i8, ptr %2, i64 %6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %.056, ptr noundef nonnull align 1 dereferenceable(64) %7, i64 64, i1 false)
  %8 = getelementptr inbounds i8, ptr %.056, i64 64
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %8, ptr noundef nonnull align 1 dereferenceable(64) %7, i64 64, i1 false)
  %9 = getelementptr inbounds i8, ptr %.056, i64 128
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %9, ptr noundef nonnull align 1 dereferenceable(64) %7, i64 64, i1 false)
  %10 = getelementptr inbounds i8, ptr %.056, i64 192
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %10, ptr noundef nonnull align 1 dereferenceable(64) %7, i64 64, i1 false)
  %11 = getelementptr inbounds i8, ptr %.056, i64 256
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %11, ptr noundef nonnull align 1 dereferenceable(64) %7, i64 64, i1 false)
  %12 = getelementptr inbounds i8, ptr %.056, i64 320
  %13 = add nuw nsw i32 %.04255, 1
  %exitcond.not = icmp eq i32 %13, 200
  br i1 %exitcond.not, label %14, label %.preheader, !llvm.loop !9

14:                                               ; preds = %.preheader
  tail call void @V_MarkRect(i32 noundef 0, i32 noundef 0, i32 noundef 320, i32 noundef 200) #4
  %15 = load i32, ptr @finalecount, align 4, !tbaa !11
  %.not57 = icmp slt i32 %15, 13
  br i1 %.not57, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %14
  %16 = add nsw i32 %15, -10
  %17 = udiv i32 %16, 3
  %18 = load ptr, ptr @finaletext, align 8, !tbaa !5
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %.04361 = phi i32 [ %40, %39 ], [ %17, %.lr.ph.preheader ]
  %.04460 = phi i32 [ %.145, %39 ], [ 10, %.lr.ph.preheader ]
  %.04659 = phi i32 [ %.147, %39 ], [ 10, %.lr.ph.preheader ]
  %.04858 = phi ptr [ %19, %39 ], [ %18, %.lr.ph.preheader ]
  %19 = getelementptr inbounds i8, ptr %.04858, i64 1
  %20 = load i8, ptr %.04858, align 1, !tbaa !13
  switch i8 %20, label %23 [
    i8 0, label %._crit_edge
    i8 10, label %21
  ]

21:                                               ; preds = %.lr.ph
  %22 = add nsw i32 %.04460, 11
  br label %39

23:                                               ; preds = %.lr.ph
  %24 = sext i8 %20 to i32
  %25 = tail call i32 @toupper(i32 noundef %24) #5
  %26 = add i32 %25, -97
  %or.cond3 = icmp ult i32 %26, -64
  br i1 %or.cond3, label %27, label %29

27:                                               ; preds = %23
  %28 = add nsw i32 %.04659, 4
  br label %39

29:                                               ; preds = %23
  %30 = add nsw i32 %25, -33
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds [63 x ptr], ptr @hu_font, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = load i16, ptr %33, align 4, !tbaa !14
  %35 = sext i16 %34 to i32
  %36 = add nsw i32 %.04659, %35
  %37 = icmp sgt i32 %36, 320
  br i1 %37, label %._crit_edge, label %38

38:                                               ; preds = %29
  tail call void @V_DrawPatch(i32 noundef %.04659, i32 noundef %.04460, i32 noundef 0, ptr noundef nonnull %33) #4
  br label %39

39:                                               ; preds = %38, %27, %21
  %.147 = phi i32 [ 10, %21 ], [ %28, %27 ], [ %36, %38 ]
  %.145 = phi i32 [ %22, %21 ], [ %.04460, %27 ], [ %.04460, %38 ]
  %40 = add nsw i32 %.04361, -1
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %39, %29, %.lr.ph, %14
  ret void
}

declare ptr @W_CacheLumpName(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare void @V_MarkRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @toupper(i32 noundef) local_unnamed_addr #3

declare void @V_DrawPatch(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 }
attributes #5 = { nounwind willreturn memory(read) }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !7, i64 8}
!16 = !{!"short", !7, i64 0}
!17 = distinct !{!17, !10}


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