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

; 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.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.doomdata_t = type { i32, i8, i8, i8, i8, [12 x %struct.ticcmd_t] }
%struct.ticcmd_t = type { i8, i8, i16, i16, i8, i8 }
%struct.doomcom_t = type { i64, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, %struct.doomdata_t }

@netbuffer = external global ptr, align 8
@sendsocket = external dso_local global i32, align 4
@doomcom = external global ptr, align 8
@sendaddress = external dso_local global [8 x %struct.sockaddr_in], 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 @PacketSend() #1 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.doomdata_t, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 104, ptr %2) #4
  %3 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %4 = getelementptr inbounds %struct.doomdata_t, ptr %3, i32 0, i32 0
  %5 = load i32, ptr %4, align 4, !tbaa !9
  %6 = call i32 @__bswap_32(i32 noundef %5)
  %7 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 0
  store i32 %6, ptr %7, align 4, !tbaa !9
  %8 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.doomdata_t, ptr %8, i32 0, i32 3
  %10 = load i8, ptr %9, align 2, !tbaa !12
  %11 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 3
  store i8 %10, ptr %11, align 2, !tbaa !12
  %12 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.doomdata_t, ptr %12, i32 0, i32 1
  %14 = load i8, ptr %13, align 4, !tbaa !13
  %15 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 1
  store i8 %14, ptr %15, align 4, !tbaa !13
  %16 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.doomdata_t, ptr %16, i32 0, i32 2
  %18 = load i8, ptr %17, align 1, !tbaa !14
  %19 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 2
  store i8 %18, ptr %19, align 1, !tbaa !14
  %20 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.doomdata_t, ptr %20, i32 0, i32 4
  %22 = load i8, ptr %21, align 1, !tbaa !15
  %23 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 4
  store i8 %22, ptr %23, align 1, !tbaa !15
  store i32 0, ptr %1, align 4, !tbaa !16
  br label %24

24:                                               ; preds = %106, %0
  %25 = load i32, ptr %1, align 4, !tbaa !16
  %26 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.doomdata_t, ptr %26, i32 0, i32 4
  %28 = load i8, ptr %27, align 1, !tbaa !15
  %29 = zext i8 %28 to i32
  %30 = icmp slt i32 %25, %29
  br i1 %30, label %31, label %109

31:                                               ; preds = %24
  %32 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.doomdata_t, ptr %32, i32 0, i32 5
  %34 = load i32, ptr %1, align 4, !tbaa !16
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %33, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.ticcmd_t, ptr %36, i32 0, i32 0
  %38 = load i8, ptr %37, align 4, !tbaa !17
  %39 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %40 = load i32, ptr %1, align 4, !tbaa !16
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %39, i64 0, i64 %41
  %43 = getelementptr inbounds %struct.ticcmd_t, ptr %42, i32 0, i32 0
  store i8 %38, ptr %43, align 4, !tbaa !17
  %44 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.doomdata_t, ptr %44, i32 0, i32 5
  %46 = load i32, ptr %1, align 4, !tbaa !16
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %45, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.ticcmd_t, ptr %48, i32 0, i32 1
  %50 = load i8, ptr %49, align 1, !tbaa !20
  %51 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %52 = load i32, ptr %1, align 4, !tbaa !16
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %51, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.ticcmd_t, ptr %54, i32 0, i32 1
  store i8 %50, ptr %55, align 1, !tbaa !20
  %56 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.doomdata_t, ptr %56, i32 0, i32 5
  %58 = load i32, ptr %1, align 4, !tbaa !16
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %57, i64 0, i64 %59
  %61 = getelementptr inbounds %struct.ticcmd_t, ptr %60, i32 0, i32 2
  %62 = load i16, ptr %61, align 2, !tbaa !21
  %63 = call zeroext i16 @__bswap_16(i16 noundef zeroext %62)
  %64 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %65 = load i32, ptr %1, align 4, !tbaa !16
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %64, i64 0, i64 %66
  %68 = getelementptr inbounds %struct.ticcmd_t, ptr %67, i32 0, i32 2
  store i16 %63, ptr %68, align 2, !tbaa !21
  %69 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.doomdata_t, ptr %69, i32 0, i32 5
  %71 = load i32, ptr %1, align 4, !tbaa !16
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %70, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.ticcmd_t, ptr %73, i32 0, i32 3
  %75 = load i16, ptr %74, align 4, !tbaa !22
  %76 = call zeroext i16 @__bswap_16(i16 noundef zeroext %75)
  %77 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %78 = load i32, ptr %1, align 4, !tbaa !16
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %77, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.ticcmd_t, ptr %80, i32 0, i32 3
  store i16 %76, ptr %81, align 4, !tbaa !22
  %82 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.doomdata_t, ptr %82, i32 0, i32 5
  %84 = load i32, ptr %1, align 4, !tbaa !16
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %83, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.ticcmd_t, ptr %86, i32 0, i32 4
  %88 = load i8, ptr %87, align 2, !tbaa !23
  %89 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %90 = load i32, ptr %1, align 4, !tbaa !16
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %89, i64 0, i64 %91
  %93 = getelementptr inbounds %struct.ticcmd_t, ptr %92, i32 0, i32 4
  store i8 %88, ptr %93, align 2, !tbaa !23
  %94 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.doomdata_t, ptr %94, i32 0, i32 5
  %96 = load i32, ptr %1, align 4, !tbaa !16
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %95, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.ticcmd_t, ptr %98, i32 0, i32 5
  %100 = load i8, ptr %99, align 1, !tbaa !24
  %101 = getelementptr inbounds %struct.doomdata_t, ptr %2, i32 0, i32 5
  %102 = load i32, ptr %1, align 4, !tbaa !16
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %101, i64 0, i64 %103
  %105 = getelementptr inbounds %struct.ticcmd_t, ptr %104, i32 0, i32 5
  store i8 %100, ptr %105, align 1, !tbaa !24
  br label %106

106:                                              ; preds = %31
  %107 = load i32, ptr %1, align 4, !tbaa !16
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %1, align 4, !tbaa !16
  br label %24, !llvm.loop !25

109:                                              ; preds = %24
  %110 = load i32, ptr @sendsocket, align 4, !tbaa !16
  %111 = load ptr, ptr @doomcom, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.doomcom_t, ptr %111, i32 0, i32 4
  %113 = load i16, ptr %112, align 2, !tbaa !27
  %114 = sext i16 %113 to i64
  %115 = load ptr, ptr @doomcom, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.doomcom_t, ptr %115, i32 0, i32 3
  %117 = load i16, ptr %116, align 4, !tbaa !30
  %118 = sext i16 %117 to i64
  %119 = getelementptr inbounds [8 x %struct.sockaddr_in], ptr @sendaddress, i64 0, i64 %118
  %120 = call i64 @sendto(i32 noundef %110, ptr noundef %2, i64 noundef %114, i32 noundef 0, ptr noundef %119, i32 noundef 16)
  %121 = trunc i64 %120 to i32
  store i32 %121, ptr %1, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 104, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) #2

declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #3

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 = { 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 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !7, i64 6}
!13 = !{!10, !7, i64 4}
!14 = !{!10, !7, i64 5}
!15 = !{!10, !7, i64 7}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 1, !19, i64 2, !19, i64 4, !7, i64 6, !7, i64 7}
!19 = !{!"short", !7, i64 0}
!20 = !{!18, !7, i64 1}
!21 = !{!18, !19, i64 2}
!22 = !{!18, !19, i64 4}
!23 = !{!18, !7, i64 6}
!24 = !{!18, !7, i64 7}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !19, i64 14}
!28 = !{!"", !29, i64 0, !19, i64 8, !19, i64 10, !19, i64 12, !19, i64 14, !19, i64 16, !19, i64 18, !19, i64 20, !19, i64 22, !19, i64 24, !19, i64 26, !19, i64 28, !19, i64 30, !19, i64 32, !19, i64 34, !19, i64 36, !19, i64 38, !10, i64 40}
!29 = !{!"long", !7, i64 0}
!30 = !{!28, !19, i64 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"

%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.doomdata_t = type { i32, i8, i8, i8, i8, [12 x %struct.ticcmd_t] }
%struct.ticcmd_t = type { i8, i8, i16, i16, i8, i8 }

@netbuffer = external local_unnamed_addr global ptr, align 8
@sendsocket = external dso_local local_unnamed_addr global i32, align 4
@doomcom = external local_unnamed_addr global ptr, align 8
@sendaddress = external dso_local global [8 x %struct.sockaddr_in], align 16

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

; Function Attrs: mustprogress 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 @PacketSend() local_unnamed_addr #1 {
  %1 = alloca %struct.doomdata_t, align 4
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #4
  %2 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %3 = load i32, ptr %2, align 4, !tbaa !9
  %4 = tail call i32 @__bswap_32(i32 noundef %3)
  store i32 %4, ptr %1, align 4, !tbaa !9
  %5 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 4
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = load <4 x i8>, ptr %6, align 4, !tbaa !12
  store <4 x i8> %8, ptr %7, align 4, !tbaa !12
  %9 = extractelement <4 x i8> %8, i64 3
  %.not = icmp eq i8 %9, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  br label %11

11:                                               ; preds = %.lr.ph, %11
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %11 ]
  %12 = phi ptr [ %5, %.lr.ph ], [ %30, %11 ]
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %13, i64 0, i64 %indvars.iv
  %15 = load i8, ptr %14, align 4, !tbaa !13
  %16 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %10, i64 0, i64 %indvars.iv
  store i8 %15, ptr %16, align 4, !tbaa !13
  %17 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %13, i64 0, i64 %indvars.iv, i32 1
  %18 = load i8, ptr %17, align 1, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %16, i64 1
  store i8 %18, ptr %19, align 1, !tbaa !16
  %20 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %13, i64 0, i64 %indvars.iv, i32 2
  %21 = load i16, ptr %20, align 2, !tbaa !17
  %22 = tail call zeroext i16 @__bswap_16(i16 noundef zeroext %21)
  %23 = getelementptr inbounds i8, ptr %16, i64 2
  store i16 %22, ptr %23, align 2, !tbaa !17
  %24 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %25, i64 0, i64 %indvars.iv, i32 3
  %27 = load i16, ptr %26, align 4, !tbaa !18
  %28 = tail call zeroext i16 @__bswap_16(i16 noundef zeroext %27)
  %29 = getelementptr inbounds i8, ptr %16, i64 4
  store i16 %28, ptr %29, align 4, !tbaa !18
  %30 = load ptr, ptr @netbuffer, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %31, i64 0, i64 %indvars.iv, i32 4
  %33 = load i8, ptr %32, align 2, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %16, i64 6
  store i8 %33, ptr %34, align 2, !tbaa !19
  %35 = getelementptr inbounds [12 x %struct.ticcmd_t], ptr %31, i64 0, i64 %indvars.iv, i32 5
  %36 = load i8, ptr %35, align 1, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %16, i64 7
  store i8 %36, ptr %37, align 1, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = getelementptr inbounds i8, ptr %30, i64 7
  %39 = load i8, ptr %38, align 1, !tbaa !21
  %40 = zext i8 %39 to i64
  %41 = icmp ult i64 %indvars.iv.next, %40
  br i1 %41, label %11, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %11, %0
  %42 = load i32, ptr @sendsocket, align 4, !tbaa !24
  %43 = load ptr, ptr @doomcom, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 14
  %45 = load i16, ptr %44, align 2, !tbaa !25
  %46 = sext i16 %45 to i64
  %47 = getelementptr inbounds i8, ptr %43, i64 12
  %48 = load i16, ptr %47, align 4, !tbaa !28
  %49 = sext i16 %48 to i64
  %50 = getelementptr inbounds [8 x %struct.sockaddr_in], ptr @sendaddress, i64 0, i64 %49
  %51 = call i64 @sendto(i32 noundef %42, ptr noundef nonnull %1, i64 noundef %46, i32 noundef 0, ptr noundef nonnull %50, i32 noundef 16) #4
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #4
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) local_unnamed_addr #2

declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { 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 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 1, !15, i64 2, !15, i64 4, !7, i64 6, !7, i64 7}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !7, i64 1}
!17 = !{!14, !15, i64 2}
!18 = !{!14, !15, i64 4}
!19 = !{!14, !7, i64 6}
!20 = !{!14, !7, i64 7}
!21 = !{!10, !7, i64 7}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !15, i64 14}
!26 = !{!"", !27, i64 0, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !15, i64 20, !15, i64 22, !15, i64 24, !15, i64 26, !15, i64 28, !15, i64 30, !15, i64 32, !15, i64 34, !15, i64 36, !15, i64 38, !10, i64 40}
!27 = !{!"long", !7, i64 0}
!28 = !{!26, !15, i64 12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass