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

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

@textures = external dso_local global ptr, align 8
@texturecompositesize = external dso_local global ptr, align 8
@texturecomposite = external dso_local global ptr, align 8
@texturecolumnlump = external dso_local global ptr, align 8
@texturecolumnofs = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [107 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @R_DrawColumnInCache(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @R_GenerateComposite(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %14 = load ptr, ptr @textures, align 8, !tbaa !9
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds ptr, ptr %14, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %18, ptr %4, align 8, !tbaa !9
  %19 = load ptr, ptr @texturecompositesize, align 8, !tbaa !9
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i32, ptr %19, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = load ptr, ptr @texturecomposite, align 8, !tbaa !9
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds ptr, ptr %24, i64 %26
  %28 = call ptr @Z_Malloc(i32 noundef %23, i32 noundef 1, ptr noundef %27)
  store ptr %28, ptr %3, align 8, !tbaa !9
  %29 = load ptr, ptr @texturecolumnlump, align 8, !tbaa !9
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %29, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  store ptr %33, ptr %12, align 8, !tbaa !9
  %34 = load ptr, ptr @texturecolumnofs, align 8, !tbaa !9
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %34, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %38, ptr %13, align 8, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.texture_t, ptr %39, i32 0, i32 4
  %41 = getelementptr inbounds [1 x %struct.texpatch_t], ptr %40, i64 0, i64 0
  store ptr %41, ptr %5, align 8, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.texture_t, ptr %42, i32 0, i32 4
  %44 = getelementptr inbounds [1 x %struct.texpatch_t], ptr %43, i64 0, i64 0
  store ptr %44, ptr %5, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %130, %1
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.texture_t, ptr %47, i32 0, i32 3
  %49 = load i16, ptr %48, align 4, !tbaa !11
  %50 = sext i16 %49 to i32
  %51 = icmp slt i32 %46, %50
  br i1 %51, label %52, label %135

52:                                               ; preds = %45
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.texpatch_t, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !14
  %56 = call ptr @W_CacheLumpNum(i32 noundef %55, i32 noundef 101)
  store ptr %56, ptr %6, align 8, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.texpatch_t, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 4, !tbaa !16
  store i32 %59, ptr %8, align 4, !tbaa !5
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.patch_t, ptr %61, i32 0, i32 0
  %63 = load i16, ptr %62, align 4, !tbaa !17
  %64 = sext i16 %63 to i32
  %65 = add nsw i32 %60, %64
  store i32 %65, ptr %9, align 4, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %52
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %71

69:                                               ; preds = %52
  %70 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %70, ptr %7, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %69, %68
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.texture_t, ptr %73, i32 0, i32 1
  %75 = load i16, ptr %74, align 4, !tbaa !19
  %76 = sext i16 %75 to i32
  %77 = icmp sgt i32 %72, %76
  br i1 %77, label %78, label %83

78:                                               ; preds = %71
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.texture_t, ptr %79, i32 0, i32 1
  %81 = load i16, ptr %80, align 4, !tbaa !19
  %82 = sext i16 %81 to i32
  store i32 %82, ptr %9, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %78, %71
  br label %84

84:                                               ; preds = %126, %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %88, label %129

88:                                               ; preds = %84
  %89 = load ptr, ptr %12, align 8, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i16, ptr %89, i64 %91
  %93 = load i16, ptr %92, align 2, !tbaa !20
  %94 = sext i16 %93 to i32
  %95 = icmp sge i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %88
  br label %126

97:                                               ; preds = %88
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.patch_t, ptr %99, i32 0, i32 4
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = sub nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [8 x i32], ptr %100, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %98, i64 %107
  store ptr %108, ptr %11, align 8, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !9
  %110 = load ptr, ptr %3, align 8, !tbaa !9
  %111 = load ptr, ptr %13, align 8, !tbaa !9
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i16, ptr %111, i64 %113
  %115 = load i16, ptr %114, align 2, !tbaa !20
  %116 = zext i16 %115 to i32
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %110, i64 %117
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.texpatch_t, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !21
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.texture_t, ptr %122, i32 0, i32 2
  %124 = load i16, ptr %123, align 2, !tbaa !22
  %125 = sext i16 %124 to i32
  call void @R_DrawColumnInCache(ptr noundef %109, ptr noundef %118, i32 noundef %121, i32 noundef %125)
  br label %126

126:                                              ; preds = %97, %96
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %7, align 4, !tbaa !5
  br label %84, !llvm.loop !23

129:                                              ; preds = %84
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %10, align 4, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.texpatch_t, ptr %133, i32 1
  store ptr %134, ptr %5, align 8, !tbaa !9
  br label %45, !llvm.loop !25

135:                                              ; preds = %45
  %136 = load ptr, ptr %3, align 8, !tbaa !9
  %137 = getelementptr inbounds i8, ptr %136, i64 -48
  %138 = getelementptr inbounds %struct.memblock_s, ptr %137, i32 0, i32 4
  %139 = load i32, ptr %138, align 4, !tbaa !26
  %140 = icmp ne i32 %139, 1919505
  br i1 %140, label %141, label %142

141:                                              ; preds = %135
  call void (ptr, ...) @I_Error(ptr noundef @.str, i32 noundef 266) #5
  unreachable

142:                                              ; preds = %135
  %143 = load ptr, ptr %3, align 8, !tbaa !9
  call void @Z_ChangeTag2(ptr noundef %143, i32 noundef 101)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

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

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

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

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


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

@textures = external dso_local local_unnamed_addr global ptr, align 8
@texturecompositesize = external dso_local local_unnamed_addr global ptr, align 8
@texturecomposite = external dso_local local_unnamed_addr global ptr, align 8
@texturecolumnlump = external dso_local local_unnamed_addr global ptr, align 8
@texturecolumnofs = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [107 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @R_DrawColumnInCache(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @R_GenerateComposite(i32 noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr @textures, align 8, !tbaa !5
  %3 = sext i32 %0 to i64
  %4 = getelementptr inbounds ptr, ptr %2, i64 %3
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr @texturecompositesize, align 8, !tbaa !5
  %7 = getelementptr inbounds i32, ptr %6, i64 %3
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = load ptr, ptr @texturecomposite, align 8, !tbaa !5
  %10 = getelementptr inbounds ptr, ptr %9, i64 %3
  %11 = tail call ptr @Z_Malloc(i32 noundef %8, i32 noundef 1, ptr noundef %10) #4
  %12 = load ptr, ptr @texturecolumnlump, align 8, !tbaa !5
  %13 = getelementptr inbounds ptr, ptr %12, i64 %3
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = load ptr, ptr @texturecolumnofs, align 8, !tbaa !5
  %16 = getelementptr inbounds ptr, ptr %15, i64 %3
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %5, i64 12
  %19 = load i16, ptr %18, align 4, !tbaa !11
  %20 = icmp sgt i16 %19, 0
  br i1 %20, label %.lr.ph46, label %._crit_edge47

.lr.ph46:                                         ; preds = %1
  %21 = getelementptr inbounds i8, ptr %5, i64 16
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  %23 = getelementptr inbounds i8, ptr %5, i64 10
  br label %24

24:                                               ; preds = %.lr.ph46, %._crit_edge
  %.044 = phi ptr [ %21, %.lr.ph46 ], [ %58, %._crit_edge ]
  %.03843 = phi i32 [ 0, %.lr.ph46 ], [ %57, %._crit_edge ]
  %25 = getelementptr inbounds i8, ptr %.044, i64 8
  %26 = load i32, ptr %25, align 4, !tbaa !14
  %27 = tail call ptr @W_CacheLumpNum(i32 noundef %26, i32 noundef 101) #4
  %28 = load i32, ptr %.044, align 4, !tbaa !16
  %29 = load i16, ptr %27, align 4, !tbaa !17
  %30 = sext i16 %29 to i32
  %31 = add nsw i32 %28, %30
  %. = tail call i32 @llvm.smax.i32(i32 %28, i32 0)
  %32 = load i16, ptr %22, align 4, !tbaa !19
  %33 = sext i16 %32 to i32
  %.037 = tail call i32 @llvm.smin.i32(i32 %31, i32 %33)
  %34 = icmp slt i32 %., %.037
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %24
  %35 = getelementptr inbounds i8, ptr %27, i64 8
  %36 = getelementptr inbounds i8, ptr %.044, i64 4
  %37 = zext nneg i32 %. to i64
  %38 = sext i32 %28 to i64
  %wide.trip.count = zext nneg i32 %.037 to i64
  br label %39

39:                                               ; preds = %.lr.ph, %56
  %indvars.iv = phi i64 [ %37, %.lr.ph ], [ %indvars.iv.next, %56 ]
  %40 = getelementptr inbounds i16, ptr %14, i64 %indvars.iv
  %41 = load i16, ptr %40, align 2, !tbaa !20
  %42 = icmp sgt i16 %41, -1
  br i1 %42, label %56, label %43

43:                                               ; preds = %39
  %44 = sub nsw i64 %indvars.iv, %38
  %45 = getelementptr inbounds [8 x i32], ptr %35, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %27, i64 %47
  %49 = getelementptr inbounds i16, ptr %17, i64 %indvars.iv
  %50 = load i16, ptr %49, align 2, !tbaa !20
  %51 = zext i16 %50 to i64
  %52 = getelementptr inbounds i8, ptr %11, i64 %51
  %53 = load i32, ptr %36, align 4, !tbaa !21
  %54 = load i16, ptr %23, align 2, !tbaa !22
  %55 = sext i16 %54 to i32
  tail call void @R_DrawColumnInCache(ptr noundef nonnull %48, ptr noundef %52, i32 noundef %53, i32 noundef %55)
  br label %56

56:                                               ; preds = %39, %43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !23

._crit_edge:                                      ; preds = %56, %24
  %57 = add nuw nsw i32 %.03843, 1
  %58 = getelementptr inbounds i8, ptr %.044, i64 12
  %59 = load i16, ptr %18, align 4, !tbaa !11
  %60 = sext i16 %59 to i32
  %61 = icmp slt i32 %57, %60
  br i1 %61, label %24, label %._crit_edge47, !llvm.loop !25

._crit_edge47:                                    ; preds = %._crit_edge, %1
  %62 = getelementptr inbounds i8, ptr %11, i64 -28
  %63 = load i32, ptr %62, align 4, !tbaa !26
  %.not = icmp eq i32 %63, 1919505
  br i1 %.not, label %65, label %64

64:                                               ; preds = %._crit_edge47
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str, i32 noundef 266) #5
  unreachable

65:                                               ; preds = %._crit_edge47
  tail call void @Z_ChangeTag2(ptr noundef nonnull %11, i32 noundef 101) #4
  ret void
}

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

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

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

declare void @Z_ChangeTag2(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { 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, !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, !13, i64 12}
!12 = !{!"", !7, i64 0, !13, i64 8, !13, i64 10, !13, i64 12, !7, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8}
!16 = !{!15, !10, i64 0}
!17 = !{!18, !13, i64 0}
!18 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !7, i64 8}
!19 = !{!12, !13, i64 8}
!20 = !{!13, !13, i64 0}
!21 = !{!15, !10, i64 4}
!22 = !{!12, !13, i64 10}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!27, !10, i64 20}
!27 = !{!"memblock_s", !10, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !10, i64 40}


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