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

; 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.sector_t = type { i32, i32, i16, i16, i16, i16, i16, i32, ptr, [4 x i32], %struct.degenmobj_t, i32, ptr, ptr, i32, ptr }
%struct.degenmobj_t = type { %struct.thinker_s, i32, i32, i32 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%union.actionf_t = type { ptr }
%struct.ceiling_t = type { %struct.thinker_s, i32, ptr, i32, i32, i32, i32, i32, i32, i32 }

@sectors = external global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @T_MoveCeiling(ptr 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 i32 @EV_DoCeiling(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i32 -1, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  %9 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %9, label %12 [
    i32 4, label %10
    i32 5, label %10
    i32 3, label %10
  ]

10:                                               ; preds = %2, %2, %2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  call void @P_ActivateInStasisCeiling(ptr noundef %11)
  br label %12

12:                                               ; preds = %10, %2
  br label %13

13:                                               ; preds = %12
  br label %14

14:                                               ; preds = %98, %28, %13
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = call i32 @P_FindSectorFromLineTag(ptr noundef %15, i32 noundef %16)
  store i32 %17, ptr %5, align 4, !tbaa !9
  %18 = icmp sge i32 %17, 0
  br i1 %18, label %19, label %109

19:                                               ; preds = %14
  %20 = load ptr, ptr @sectors, align 8, !tbaa !5
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds %struct.sector_t, ptr %20, i64 %22
  store ptr %23, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.sector_t, ptr %24, i32 0, i32 13
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %19
  br label %14, !llvm.loop !16

29:                                               ; preds = %19
  store i32 1, ptr %6, align 4, !tbaa !9
  %30 = call ptr @Z_Malloc(i32 noundef 72, i32 noundef 51, ptr noundef null)
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ceiling_t, ptr %31, i32 0, i32 0
  call void @P_AddThinker(ptr noundef %32)
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.sector_t, ptr %34, i32 0, i32 13
  store ptr %33, ptr %35, align 8, !tbaa !11
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ceiling_t, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.thinker_s, ptr %37, i32 0, i32 2
  store ptr @T_MoveCeiling, ptr %38, align 8, !tbaa !18
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ceiling_t, ptr %40, i32 0, i32 2
  store ptr %39, ptr %41, align 8, !tbaa !19
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ceiling_t, ptr %42, i32 0, i32 6
  store i32 0, ptr %43, align 4, !tbaa !21
  %44 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %44, label %98 [
    i32 4, label %45
    i32 5, label %63
    i32 3, label %63
    i32 2, label %71
    i32 0, label %71
    i32 1, label %89
  ]

45:                                               ; preds = %29
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ceiling_t, ptr %46, i32 0, i32 6
  store i32 1, ptr %47, align 4, !tbaa !21
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.sector_t, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !22
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ceiling_t, ptr %51, i32 0, i32 4
  store i32 %50, ptr %52, align 4, !tbaa !23
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.sector_t, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !24
  %56 = add nsw i32 %55, 524288
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ceiling_t, ptr %57, i32 0, i32 3
  store i32 %56, ptr %58, align 8, !tbaa !25
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ceiling_t, ptr %59, i32 0, i32 7
  store i32 -1, ptr %60, align 8, !tbaa !26
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ceiling_t, ptr %61, i32 0, i32 5
  store i32 131072, ptr %62, align 8, !tbaa !27
  br label %98

63:                                               ; preds = %29, %29
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ceiling_t, ptr %64, i32 0, i32 6
  store i32 1, ptr %65, align 4, !tbaa !21
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.sector_t, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ceiling_t, ptr %69, i32 0, i32 4
  store i32 %68, ptr %70, align 4, !tbaa !23
  br label %71

71:                                               ; preds = %63, %29, %29
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.sector_t, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !24
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ceiling_t, ptr %75, i32 0, i32 3
  store i32 %74, ptr %76, align 8, !tbaa !25
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %84

79:                                               ; preds = %71
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ceiling_t, ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 8, !tbaa !25
  %83 = add nsw i32 %82, 524288
  store i32 %83, ptr %81, align 8, !tbaa !25
  br label %84

84:                                               ; preds = %79, %71
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ceiling_t, ptr %85, i32 0, i32 7
  store i32 -1, ptr %86, align 8, !tbaa !26
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ceiling_t, ptr %87, i32 0, i32 5
  store i32 65536, ptr %88, align 8, !tbaa !27
  br label %98

89:                                               ; preds = %29
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = call i32 @P_FindHighestCeilingSurrounding(ptr noundef %90)
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ceiling_t, ptr %92, i32 0, i32 4
  store i32 %91, ptr %93, align 4, !tbaa !23
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ceiling_t, ptr %94, i32 0, i32 7
  store i32 1, ptr %95, align 8, !tbaa !26
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ceiling_t, ptr %96, i32 0, i32 5
  store i32 65536, ptr %97, align 8, !tbaa !27
  br label %98

98:                                               ; preds = %89, %84, %45, %29
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.sector_t, ptr %99, i32 0, i32 6
  %101 = load i16, ptr %100, align 8, !tbaa !28
  %102 = sext i16 %101 to i32
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ceiling_t, ptr %103, i32 0, i32 8
  store i32 %102, ptr %104, align 4, !tbaa !29
  %105 = load i32, ptr %4, align 4, !tbaa !9
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ceiling_t, ptr %106, i32 0, i32 1
  store i32 %105, ptr %107, align 8, !tbaa !30
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  call void @P_AddActiveCeiling(ptr noundef %108)
  br label %14, !llvm.loop !16

109:                                              ; preds = %14
  %110 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret i32 %110
}

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

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

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

declare void @P_AddThinker(ptr noundef) #2

declare i32 @P_FindHighestCeilingSurrounding(ptr noundef) #2

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

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 = { 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, !6, i64 104}
!12 = !{!"", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !10, i64 20, !6, i64 24, !7, i64 32, !14, i64 48, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120}
!13 = !{!"short", !7, i64 0}
!14 = !{!"", !15, i64 0, !10, i64 24, !10, i64 28, !10, i64 32}
!15 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !6, i64 32}
!20 = !{!"", !15, i64 0, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64}
!21 = !{!20, !10, i64 52}
!22 = !{!12, !10, i64 4}
!23 = !{!20, !10, i64 44}
!24 = !{!12, !10, i64 0}
!25 = !{!20, !10, i64 40}
!26 = !{!20, !10, i64 56}
!27 = !{!20, !10, i64 48}
!28 = !{!12, !13, i64 16}
!29 = !{!20, !10, i64 60}
!30 = !{!20, !10, i64 24}


; 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.sector_t = type { i32, i32, i16, i16, i16, i16, i16, i32, ptr, [4 x i32], %struct.degenmobj_t, i32, ptr, ptr, i32, ptr }
%struct.degenmobj_t = type { %struct.thinker_s, i32, i32, i32 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%union.actionf_t = type { ptr }

@sectors = external local_unnamed_addr global ptr, align 8

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @EV_DoCeiling(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %.off = add i32 %1, -3
  %switch = icmp ult i32 %.off, 3
  br i1 %switch, label %3, label %4

3:                                                ; preds = %2
  tail call void @P_ActivateInStasisCeiling(ptr noundef %0)
  br label %4

4:                                                ; preds = %2, %3
  %.not41 = icmp eq i32 %1, 0
  br label %.outer

.outer:                                           ; preds = %40, %4
  %.039.ph = phi i32 [ 1, %40 ], [ 0, %4 ]
  %.0.ph = phi i32 [ %6, %40 ], [ -1, %4 ]
  br label %5

5:                                                ; preds = %.outer, %8
  %.0 = phi i32 [ %6, %8 ], [ %.0.ph, %.outer ]
  %6 = tail call i32 @P_FindSectorFromLineTag(ptr noundef %0, i32 noundef %.0) #2
  %7 = icmp sgt i32 %6, -1
  br i1 %7, label %8, label %46

8:                                                ; preds = %5
  %9 = load ptr, ptr @sectors, align 8, !tbaa !5
  %10 = zext nneg i32 %6 to i64
  %11 = getelementptr inbounds %struct.sector_t, ptr %9, i64 %10
  %12 = getelementptr inbounds i8, ptr %11, i64 104
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %14, label %5, !llvm.loop !15

14:                                               ; preds = %8
  %15 = getelementptr inbounds i8, ptr %11, i64 104
  %16 = tail call ptr @Z_Malloc(i32 noundef 72, i32 noundef 51, ptr noundef null) #2
  tail call void @P_AddThinker(ptr noundef %16) #2
  store ptr %16, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store ptr @T_MoveCeiling, ptr %17, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %16, i64 32
  store ptr %11, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %16, i64 52
  store i32 0, ptr %19, align 4, !tbaa !20
  switch i32 %1, label %40 [
    i32 4, label %20
    i32 5, label %27
    i32 3, label %27
    i32 2, label %31
    i32 0, label %31
    i32 1, label %35
  ]

20:                                               ; preds = %14
  store i32 1, ptr %19, align 4, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %11, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %16, i64 44
  store i32 %22, ptr %23, align 4, !tbaa !22
  %24 = load i32, ptr %11, align 8, !tbaa !23
  %25 = add nsw i32 %24, 524288
  %26 = getelementptr inbounds i8, ptr %16, i64 40
  store i32 %25, ptr %26, align 8, !tbaa !24
  br label %.sink.split

27:                                               ; preds = %14, %14
  store i32 1, ptr %19, align 4, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %11, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %16, i64 44
  store i32 %29, ptr %30, align 4, !tbaa !22
  br label %31

31:                                               ; preds = %27, %14, %14
  %32 = load i32, ptr %11, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %16, i64 40
  %34 = add nsw i32 %32, 524288
  %spec.select = select i1 %.not41, i32 %32, i32 %34
  store i32 %spec.select, ptr %33, align 8, !tbaa !24
  br label %.sink.split

35:                                               ; preds = %14
  %36 = tail call i32 @P_FindHighestCeilingSurrounding(ptr noundef nonnull %11) #2
  %37 = getelementptr inbounds i8, ptr %16, i64 44
  store i32 %36, ptr %37, align 4, !tbaa !22
  br label %.sink.split

.sink.split:                                      ; preds = %20, %31, %35
  %.sink51 = phi i32 [ 1, %35 ], [ -1, %31 ], [ -1, %20 ]
  %.sink = phi i32 [ 65536, %35 ], [ 65536, %31 ], [ 131072, %20 ]
  %38 = getelementptr inbounds i8, ptr %16, i64 56
  store i32 %.sink51, ptr %38, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %16, i64 48
  store i32 %.sink, ptr %39, align 8, !tbaa !26
  br label %40

40:                                               ; preds = %.sink.split, %14
  %41 = getelementptr inbounds i8, ptr %11, i64 16
  %42 = load i16, ptr %41, align 8, !tbaa !27
  %43 = sext i16 %42 to i32
  %44 = getelementptr inbounds i8, ptr %16, i64 60
  store i32 %43, ptr %44, align 4, !tbaa !28
  %45 = getelementptr inbounds i8, ptr %16, i64 24
  store i32 %1, ptr %45, align 8, !tbaa !29
  tail call void @P_AddActiveCeiling(ptr noundef nonnull %16)
  br label %.outer, !llvm.loop !15

46:                                               ; preds = %5
  ret i32 %.039.ph
}

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

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

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

declare void @P_AddThinker(ptr noundef) local_unnamed_addr #1

declare i32 @P_FindHighestCeilingSurrounding(ptr noundef) local_unnamed_addr #1

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

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 = { 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, !6, i64 104}
!10 = !{!"", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 10, !12, i64 12, !12, i64 14, !12, i64 16, !11, i64 20, !6, i64 24, !7, i64 32, !13, i64 48, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"", !14, i64 0, !11, i64 24, !11, i64 28, !11, i64 32}
!14 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 32}
!19 = !{!"", !14, i64 0, !11, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64}
!20 = !{!19, !11, i64 52}
!21 = !{!10, !11, i64 4}
!22 = !{!19, !11, i64 44}
!23 = !{!10, !11, i64 0}
!24 = !{!19, !11, i64 40}
!25 = !{!19, !11, i64 56}
!26 = !{!19, !11, i64 48}
!27 = !{!10, !12, i64 16}
!28 = !{!19, !11, i64 60}
!29 = !{!19, !11, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass