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

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

@firstspritelump = external global i32, align 4
@dc_texturemid = external global i32, align 4
@sprtopscreen = external dso_local global i32, align 4
@spryscale = external dso_local global i32, align 4
@dc_x = external global i32, align 4
@colfunc = external global ptr, align 8
@dc_colormap = external global ptr, align 8
@translationtables = external global ptr, align 8
@dc_translation = external global ptr, align 8
@dc_iscale = external global i32, align 4
@centeryfrac = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

; 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
declare dso_local void @R_DrawMaskedColumn(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @R_DrawVisSprite(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %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 ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.vissprite_s, ptr %14, i32 0, i32 12
  %16 = load i32, ptr %15, align 8, !tbaa !11
  %17 = load i32, ptr @firstspritelump, align 4, !tbaa !9
  %18 = add nsw i32 %16, %17
  %19 = call ptr @W_CacheLumpNum(i32 noundef %18, i32 noundef 101)
  store ptr %19, ptr %10, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.vissprite_s, ptr %20, i32 0, i32 13
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  store ptr %22, ptr @dc_colormap, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %23 = load ptr, ptr @colfunc, align 8, !tbaa !5
  store ptr %23, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr @dc_colormap, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %27, label %26

26:                                               ; preds = %3
  store ptr @R_DrawFuzzColumn, ptr @colfunc, align 8, !tbaa !5
  br label %44

27:                                               ; preds = %3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.vissprite_s, ptr %28, i32 0, i32 14
  %30 = load i32, ptr %29, align 8, !tbaa !14
  %31 = and i32 %30, 201326592
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %43

33:                                               ; preds = %27
  store ptr @R_DrawTranslatedColumn, ptr @colfunc, align 8, !tbaa !5
  %34 = load ptr, ptr @translationtables, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 -256
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.vissprite_s, ptr %36, i32 0, i32 14
  %38 = load i32, ptr %37, align 8, !tbaa !14
  %39 = and i32 %38, 201326592
  %40 = ashr i32 %39, 18
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %35, i64 %41
  store ptr %42, ptr @dc_translation, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %33, %27
  br label %44

44:                                               ; preds = %43, %26
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.vissprite_s, ptr %45, i32 0, i32 10
  %47 = load i32, ptr %46, align 8, !tbaa !15
  %48 = call i32 @llvm.abs.i32(i32 %47, i1 true)
  store i32 %48, ptr @dc_iscale, align 4, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.vissprite_s, ptr %49, i32 0, i32 11
  %51 = load i32, ptr %50, align 4, !tbaa !16
  store i32 %51, ptr @dc_texturemid, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.vissprite_s, ptr %52, i32 0, i32 8
  %54 = load i32, ptr %53, align 8, !tbaa !17
  store i32 %54, ptr %9, align 4, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vissprite_s, ptr %55, i32 0, i32 9
  %57 = load i32, ptr %56, align 4, !tbaa !18
  store i32 %57, ptr @spryscale, align 4, !tbaa !9
  %58 = load i32, ptr @centeryfrac, align 4, !tbaa !9
  %59 = load i32, ptr @dc_texturemid, align 4, !tbaa !9
  %60 = load i32, ptr @spryscale, align 4, !tbaa !9
  %61 = call i32 @FixedMul(i32 noundef %59, i32 noundef %60)
  %62 = sub nsw i32 %58, %61
  store i32 %62, ptr @sprtopscreen, align 4, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vissprite_s, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !19
  store i32 %65, ptr @dc_x, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %96, %44
  %67 = load i32, ptr @dc_x, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.vissprite_s, ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 4, !tbaa !20
  %71 = icmp sle i32 %67, %70
  br i1 %71, label %72, label %104

72:                                               ; preds = %66
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = ashr i32 %73, 16
  store i32 %74, ptr %8, align 4, !tbaa !9
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %84, label %77

77:                                               ; preds = %72
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.patch_t, ptr %79, i32 0, i32 0
  %81 = load i16, ptr %80, align 4, !tbaa !21
  %82 = sext i16 %81 to i32
  %83 = icmp sge i32 %78, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %77, %72
  call void (ptr, ...) @I_Error(ptr noundef @.str.6) #7
  unreachable

85:                                               ; preds = %77
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.patch_t, ptr %87, i32 0, i32 4
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [8 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %86, i64 %93
  store ptr %94, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @R_DrawMaskedColumn(ptr noundef %95)
  br label %96

96:                                               ; preds = %85
  %97 = load i32, ptr @dc_x, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr @dc_x, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.vissprite_s, ptr %99, i32 0, i32 10
  %101 = load i32, ptr %100, align 8, !tbaa !15
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = add nsw i32 %102, %101
  store i32 %103, ptr %9, align 4, !tbaa !9
  br label %66, !llvm.loop !24

104:                                              ; preds = %66
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %105, ptr @colfunc, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

declare ptr @W_CacheLumpNum(i32 noundef, i32 noundef) #3

declare void @R_DrawFuzzColumn() #3

declare void @R_DrawTranslatedColumn() #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"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 = !{!12, !10, i64 56}
!12 = !{!"vissprite_s", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !10, i64 72}
!13 = !{!12, !6, i64 64}
!14 = !{!12, !10, i64 72}
!15 = !{!12, !10, i64 48}
!16 = !{!12, !10, i64 52}
!17 = !{!12, !10, i64 40}
!18 = !{!12, !10, i64 44}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 20}
!21 = !{!22, !23, i64 0}
!22 = !{!"", !23, i64 0, !23, i64 2, !23, i64 4, !23, i64 6, !7, i64 8}
!23 = !{!"short", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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"

@firstspritelump = external local_unnamed_addr global i32, align 4
@dc_texturemid = external local_unnamed_addr global i32, align 4
@sprtopscreen = external dso_local local_unnamed_addr global i32, align 4
@spryscale = external dso_local local_unnamed_addr global i32, align 4
@dc_x = external local_unnamed_addr global i32, align 4
@colfunc = external local_unnamed_addr global ptr, align 8
@dc_colormap = external local_unnamed_addr global ptr, align 8
@translationtables = external local_unnamed_addr global ptr, align 8
@dc_translation = external local_unnamed_addr global ptr, align 8
@dc_iscale = external local_unnamed_addr global i32, align 4
@centeryfrac = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @R_DrawMaskedColumn(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @R_DrawVisSprite(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = load i32, ptr @firstspritelump, align 4, !tbaa !11
  %7 = add nsw i32 %6, %5
  %8 = tail call ptr @W_CacheLumpNum(i32 noundef %7, i32 noundef 101) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  store ptr %10, ptr @dc_colormap, align 8, !tbaa !13
  %11 = load ptr, ptr @colfunc, align 8, !tbaa !13
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %3
  store ptr @R_DrawFuzzColumn, ptr @colfunc, align 8, !tbaa !13
  br label %24

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  %15 = load i32, ptr %14, align 8, !tbaa !14
  %16 = and i32 %15, 201326592
  %.not23 = icmp eq i32 %16, 0
  br i1 %.not23, label %24, label %17

17:                                               ; preds = %13
  store ptr @R_DrawTranslatedColumn, ptr @colfunc, align 8, !tbaa !13
  %18 = load ptr, ptr @translationtables, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %18, i64 -256
  %20 = lshr i32 %15, 18
  %21 = and i32 %20, 768
  %22 = zext nneg i32 %21 to i64
  %23 = getelementptr inbounds i8, ptr %19, i64 %22
  store ptr %23, ptr @dc_translation, align 8, !tbaa !13
  br label %24

24:                                               ; preds = %13, %17, %12
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = tail call i32 @llvm.abs.i32(i32 %26, i1 true)
  store i32 %27, ptr @dc_iscale, align 4, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %0, i64 52
  %29 = load i32, ptr %28, align 4, !tbaa !16
  store i32 %29, ptr @dc_texturemid, align 4, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %0, i64 44
  %33 = load i32, ptr %32, align 4, !tbaa !18
  store i32 %33, ptr @spryscale, align 4, !tbaa !11
  %34 = load i32, ptr @centeryfrac, align 4, !tbaa !11
  %35 = tail call i32 @FixedMul(i32 noundef %29, i32 noundef %33)
  %36 = sub nsw i32 %34, %35
  store i32 %36, ptr @sprtopscreen, align 4, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load i32, ptr %37, align 8, !tbaa !19
  store i32 %38, ptr @dc_x, align 4, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %0, i64 20
  %40 = load i32, ptr %39, align 4, !tbaa !20
  %.not2426 = icmp sgt i32 %38, %40
  br i1 %.not2426, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %24
  %41 = getelementptr inbounds i8, ptr %8, i64 8
  br label %42

42:                                               ; preds = %.lr.ph, %49
  %.027 = phi i32 [ %31, %.lr.ph ], [ %58, %49 ]
  %43 = ashr i32 %.027, 16
  %44 = icmp slt i32 %43, 0
  br i1 %44, label %48, label %45

45:                                               ; preds = %42
  %46 = load i16, ptr %8, align 4, !tbaa !21
  %47 = sext i16 %46 to i32
  %.not25 = icmp slt i32 %43, %47
  br i1 %.not25, label %49, label %48

48:                                               ; preds = %45, %42
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str.6) #6
  unreachable

49:                                               ; preds = %45
  %50 = zext nneg i32 %43 to i64
  %51 = getelementptr inbounds [8 x i32], ptr %41, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %8, i64 %53
  tail call void @R_DrawMaskedColumn(ptr noundef nonnull %54)
  %55 = load i32, ptr @dc_x, align 4, !tbaa !11
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr @dc_x, align 4, !tbaa !11
  %57 = load i32, ptr %25, align 8, !tbaa !15
  %58 = add nsw i32 %57, %.027
  %59 = load i32, ptr %39, align 4, !tbaa !20
  %.not24.not = icmp slt i32 %55, %59
  br i1 %.not24.not, label %42, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %49, %24
  store ptr %11, ptr @colfunc, align 8, !tbaa !13
  ret void
}

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

declare void @R_DrawFuzzColumn() #2

declare void @R_DrawTranslatedColumn() #2

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

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 56}
!6 = !{!"vissprite_s", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !7, i64 64, !10, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !7, i64 64}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 72}
!15 = !{!6, !10, i64 48}
!16 = !{!6, !10, i64 52}
!17 = !{!6, !10, i64 40}
!18 = !{!6, !10, i64 44}
!19 = !{!6, !10, i64 16}
!20 = !{!6, !10, i64 20}
!21 = !{!22, !23, i64 0}
!22 = !{!"", !23, i64 0, !23, i64 2, !23, i64 4, !23, i64 6, !8, i64 8}
!23 = !{!"short", !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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